Variable, Constant and Keyword in C
Resource download – List of C keywords PDF (Click here to download)
The above video is an extract from the online course – “C Programming: The ultimate guide for beginners” which we are currently working on. Consider subscribing to Youtube channel – Aptuts in order to get latest updates on new videos and online C programming course.
Variable, constant or keyword in C can be formed from any combination of Alphabets, Digits and Special Symbols. A constant in C programming is an entity whose value does not change throughout the program execution.
A variable in C is an entity whose value keeps on changing throughout the program execution. However, it’s not a rule that the value of the variable will change. A variable in C value might remain same throughout the program execution. However, the main difference between variable and constant in C is that we can’t change the value of constant in between the program, but we can change the value of the variable during program execution.
Let us take an example of constant and variable in C
We define a variable named x in a program, let us say x=3.
After some time during execution, we change the value of x to 6. Now, x = 6.
Here value of x is getting changed. But the value of 3 and 6 will never change. Hence, x is called a variable and 3 is called a constant.
Keywords in C programming are the words whose meaning has already been explained to the C compiler. The keyword cannot be used as the variable name. If we try to do so we are trying to assign new meaning to the keyword. The keywords in C are also known as ‘Reserved words’.
E.g.: for, if, static, while, do, break etc.
This C tutorial is brought you by LearnCOnline.com
cool stuff ! thanks 🙂
THANKS. FOR THIS TUTORIAL KEPPS GOING ON
Just a tip. The tutorial looks fine, but you should add [NEXT] and [PREV] buttons, so that one doesn’t have to hunt next from the sidebar.
it was very helpful…
supper stuff.. keep reading guys….
really useful 🙂
Thanks alot everyone for your valuable comments and inputs…
very useful to every one..
Thank you for making It so easy to learn C.
thanks it is gonna helpful…
good nd helpful
Hi this m first time learning to take interest in learning c and these 2 articles have been helpful. still to continue my journey thru the next artciles
very nice superb awesome boss i have completed my engg but in engg too nobody has thougth me like this thankkkkkkkkkkkkkkkkkkkkkkkkkkkk u veryyyyyyyyyyyyyyyyyyyyyyyyyy much…………………
Very clear writing style – thanks kindly: I need this site! Dave
Thanks for eveything….
Thanks a million
thank you verrrrrrrrry much
cool stuff just love it, thanks
Nice way of writing, where we can easy to under stand our difficult problems, Thank You.
it is the easy way to learn c orogramming of this websites
its a sad thing i ha finished my grad in IT bt doent kw much of it..bt dis site is teachin me again with clear concepts step by step..really thnkfull..:)
today only i cleared tat diff b/w the abov two……
tnx for sharing…..
thank you. Will do my best so this tuorial wont go in vain . That means i wil lstart learn c rightaway now . 😀
How do we declare variables of our own in respect to the programme what we get?
G8 and easy.Tnx 😀
Very Helpful Thanks.
great helful … Thanks
Please provide next and prev options :/
Thank you everyone for the wonderful comments. I hope this website is helping every one out there.
If you like this website, kindly share it with everyone.
very help ful thanks
Nice one….but I have to go to the side bar to continue ..well I hope you could update it. It’s a nice site, didn’t expect this
good to learn c
thnks for ur support keep going on
thank you dude its simple yet very effective
Very nice Tutorial to begin the Introduction to Programming
Excellent site you have here.. It’s difficult to find
excellent writing like yours nowadays. I honestly appreciate people like you!
Good Day, I am a student of the MCA. I am completed this program throughout the distance education. Because I have not interest in the regular education. Now a days there no regularity in the lectures. I really completed programming education online.
I searched “Learn C” website, and I feel that Now I will complete my aim in my life. This is very good site.
We would like to hear more from you regarding your progress. Thanks a lot for your feedback and we really appreciate it.
All the best 🙂
Thanks you! I started learn C, I found your web and I think it verry helpful.
Thanks a lot. 🙂
Hope this website on C programming will help you learn C.
You are welcome Kelvin. Hope this C tutorial helped you. 🙂