Ch.1: Basic of C

Variable is name of memeory location which stored same data.

1. Variable (Container):

Rules:

a) Variable are case sensitive.

b) 1st character is alphabet or ‘_’.

c) No comma or black space.

d) No other symbol other than ‘_’ .

2.Data Type:

No.data typesize of bytes
1.char or signed char1
2.unsigned char1
3.int or signed int2
4.unsigned int2
5.short int or signed short int2
6.unsigned short int2
7.long int or signed long int4
8.unsigned long int4
9.float4
10.double8
11.long double10

3.keywords:

  • Keywords are those words whose meaning is already defined by Compiler.
  • Cannot be used as Variable Name.
  • There are 32 Keywords in C.
  • C Keywords are also called as Reserved words.

32 keywords

autodoubleintstructbreakelse
longswitchcaseenumregistertypedef
charexternreturnunionconstfloat
shortunsignedcontinueforsignedvoid
staticgotosizeofdowhilevolatile
defaultif

Design a site like this with WordPress.com
Get started