There are some specific Terms every one have to memorize who want to learn C Language
KeyWords
In C Language some words are predefined means have special meanings for C - Language and Compiler of C Language recognize these words and behaves accordingly.
- There are 32 Keywords in C
- C Keywords are also called as Reserved words .
32 Keywords in C Programming Language
auto | double | int | struct |
---|---|---|---|
break | else | long | switch |
case | enum | register | typedef |
char | extern | return | union |
const | float | short | unsigned |
continue | for | signed | void |
default | goto | sizeof | volatile |
do | if | static | while |
Constants.
Constants are basically values we use in Our Program. There are four types of constants are available in C-Language,
- Character Constants
- String Constants
- Integer Constants
- Floating Point Constants
Character Constants.
Only one character from ASCII Character Set enclosed within Single Quotes (Apostrophes signs) is called Character Constant, There is a special situation when two characters are enclosed in Single Quotes '\0'.
'A', '1', '#' are all valid examples of Character Constants.
String Constants.
String constants means series of characters one or more enclosed in Double Quotes (Inverted Commas) ,
here are some examples
"A" , "Asif", "I Love Pakistan" , "House # 45", "12345" are all valid string examples.
Integer Constants.
Integer Constant means the Numbers without Decimal Point, like 100, 234, 56
Floating Point Constants.
Floating Point Constants means Numbers with Decimal Points, like 23.45, 0.5, 4.555;
Awesome Article.
ReplyDeletePresent Sir
ReplyDeletegr8 effort
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteIt's very helpful for starters, you should do probably encourage and upload such articles,,, very very superb n fabulous effort... I appreciate,,,
ReplyDelete