Introduction to c
Introduction to c
C Language
• Character Sets
• Keywords
• Identifiers
• Datatypes
• Operators
• Decision Making Statements
• Looping Statements
• Functional Programming
• Dealing with Multi-Valued Variables- Arrays
• User defined data types- structures and unions
#include <stdio.h>
main()
{
printf("hello world \n Welcome to C Language");
return 0;
}
• age
• _age
• Age*
• Ag_e
• 4age
• ag4e
• int
• intage
Shri Vishnu Engineering College for Women ::
13
Information Technology
Escape Sequence Characters
• Sometimes, it is necessary to use characters which cannot be
typed or has special meaning in C programming.
• For example: \n is used for newline. The backslash ( \ ) causes
"escape" from the normal way the characters are interpreted
by the compiler.
• \n Newline
• \b Backspace
• \f Form feed
• \r Return
• \t Horizontal tab
• \\ Backslash
• \' Single quotation mark
• \" Double quotation mark
• \? Question mark
• \0 Null character