For
Problem Solving
, Elements of C
⚫ The elements which are used to create a C program
are:
▪ Character set
▪ Keywords
▪ Identifiers
▪ Data Types
▪ Variables and Constant
▪ Operators
▪ Statements
,Character Set
⚫ Character set in C includes the following:
◦ The uppercase English alphabets A to Z
◦ The lowercase English alphabets a to z
◦ The digits 0 to 9
◦ special characters!,@,#,$,% etc
◦ White spaces, tab, and new lines
, Keywords
⚫ Keywords are predefined, reserved words in C and
each of which is associated with specific features.
⚫ They have special meaning to the compilers.
⚫ There are only 32 keywords available in C.