Friday, May 15, 2020


Element in c:

Every language has some basic element and there  own rule.c language has also some elements so before starting c language ,we know about the elements of c language.the basic elements of c language are character set, variable ,data type,keyword(reserve word), expression,variable declaration,statement etc.

character set used in c is given below:

1)Alphabets: 
As you know English grammar has 26 alphabets as same we use 26 alphabets in c language but c is case sensitive language ,so A----Z alphabets are different with a---z alphabets.

2)Digits:
digits are basically 0,1,2,3,4,5,6,7,8,9

3)special character:
special character are +, - , < , > , * , & , ^ , % , # , $ ,@, etc.

variable:

variable are the name of the memory location where we store the data.
for example  int a;
where a is the name of the memory location where we store data
if int a=5;
then, 




                                                                                                                                                                                              where we can see ,that a is the memory location name where store data,here our data is 5.
                                         

 Data type:

With the help of data type we declare the variable. data type determine the type and size of the data.
there are 5 keyword called data type in c language.
1)int (store 2 byte data in 16 bit architecture)
2)char(store 1 byte data in 16 bit architecture)
3)float(store 4 byte data in 16 bit architecture)
4)double(store 8 byte data in 16 bit architecture)
5)void

There are two type of data type in c language.

1)primitive data type
2)non primitive data type

primitive data type:

primitive data type is predefined data type.it is predefined in c library .
like int,char,float ,double.

Non primitive data type :

Non primitive data type is user define data type ,this data type defines by user itself
with  the help of structure,union etc. 

Keyword (reserved word):

keyword are predefined word this is also known as reserved word .
in these reserved word 5 word are data type.
there are 32 keyword in c language
These are the 32 keywords are given in the figure                                                                            we are discussing about variable declaration and statement in next chapter. 

Labels:

4 Comments:

At May 15, 2020 at 5:29 AM , Blogger Unknown said...

Gajab guru ji... chha gye... bhai

 
At May 16, 2020 at 1:22 AM , Blogger Unknown said...

Bht shi

 
At May 16, 2020 at 1:29 AM , Blogger Sourav Vishvas said...

Bahot hard😁👌🏻

 
At May 21, 2020 at 7:42 PM , Blogger Unknown said...

Nice imformation sir ji

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home