we learn comments in c language. Here we learn variables in c language. Before that we know all about any thing we can store we use always third party (thing) means if we want to store water for our drinking we use one water bottle,if we want to store latest songs in our mobile we use memory card like that we are depended on other thing.For storing or replacing in real time. For that we have different names and different thins like bottle etc.In the same way C language named as variable.

What is variable in C Language ?
Variable in C programming is also called as container to store the data. A variable is a name given to the memory location where the actual data is stored. Variables are so called because, the constants in the variables can be modified any where in the program values of variables varies from time to time.
Variable naming Rules
We have to follow the following rules while creating a variables in C programming.
- Variable name should start with an alphabet.
-
Ex: a,anand,num,sum
- Variable name cane be sequence of alphabets and digits.
-
Ex: abc,anand12,sum34;
- Variable name can't contain any special characters expect such as[ *,^, ! , ; , #,...etc]
-
EX: rool.no=101; // incorrect declaration should not contain special character(.)
- Variable name should not contain spaces.Underscores are allowed to Different between two words.
-
EX: sales no=420; incorrect statement because space are not allowed;
sales_no=420; correct statement;
Rember Following Tricks
- Do not create Unnecessarily long variable name.
- Do not use Underscore as a First Character to avoid confusion between System variables and User Defined variables because many system variables are start with Underscore.
- Variable names are case sensitive.
Declaration of variable
Declare is nothing bur represent a variable. Only Datatype and Variable name is represented in Declaration. When we declare a variable following instructions will be done.- Memory is allocated for variable or space is reserved for variable.
- Declaration is used for just identification of Datatype.
Pretty post, I hope your site useful for many users who want to learn basics of programming to enhance their skill for getting good career in IT, thanks for taking time to discuss about fundamental programming niche.
ReplyDeleteWith Regards,
Python Training in Chennai|Python Training|Python Training in Chennai
thank you..
DeleteThis blog awesome...
ReplyDeletesharepoint training in chennai
Hi, I have read your blog. Really very informative and excellent post I had ever seen about C. Thank you for sharing such a wonderful blog to our vision.
ReplyDeletePython Training in Chennai|Web Designing Training in Chennai|Java Training in chennai
Thanks for this nice blog. It was really very nice to read the blog. Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
ReplyDeletejava training in chennai |
Core java training in chennai
Thanks for sharing this interesting article..
ReplyDeleteCCNA Training Center in Chennai | CCNA Training in Chennai | Best CCNA Training in Velachery | Online CCNA Training in Chennai
You made some good points there. I did a search on the topic and found most people will agree with your blog.
ReplyDeleteB.Com Project Center in Chennai | B.Com Project Center in Velachery
These are actually impressive ideas in on the topic of blogging. You have touched some pleasant things here. Any way keep up wrinting.
ReplyDeleteEmbedded training in chennai | plc training institute in chennai
Very good blog.thank you for sharing..very useful and information..
ReplyDeleteCloud Computing Training Institute in Velachery