This Blog is for New Computer Prgrammers

Tuesday 6 December 2016

C - Language Terminology



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

autodoubleintstruct
breakelselongswitch
caseenumregistertypedef
charexternreturnunion
constfloatshortunsigned
continueforsignedvoid
defaultgotosizeofvolatile
doifstaticwhile

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;






Share:

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. It's very helpful for starters, you should do probably encourage and upload such articles,,, very very superb n fabulous effort... I appreciate,,,

    ReplyDelete

Total Pageviews