Learning programming language We first learn about its grammar. I know that you don't hear about grammar of programming language but its matter. Before making program we first think like a machine because the program that we make is run by a machine like calculator,computer and other digital machine which is compatible. Basically grammar of programming languages is just guideline and limitation. Here we will talk about C programming language and its grammar.
Keyword/Reserved word of C
Just think why people don't named his pet as If, You, They, Me, I, To, We, Us...
Because it is a grammatical result. In programming languages some word are already reserved and that is not use as identifier. This reserved word is called as Keyword. There are many keywords of C languages and we can not use this word as identifier. C is a case sensitive language. All keywords of C are write in lower case
Because it is a grammatical result. In programming languages some word are already reserved and that is not use as identifier. This reserved word is called as Keyword. There are many keywords of C languages and we can not use this word as identifier. C is a case sensitive language. All keywords of C are write in lower case
List of Keywords of C
continue goto sizeof volatile default if static while do int struct _Packed auto else long switch break enum register typedef case extern return union char float short unsigned const for signed void double
the highlighted keyword are basic and most important kayword
What is role of Keyword ?
Keywords are reserved word in C and every keywords have its unique behavior when we apply it in our program. When we talk about every language we use many grammatical such that in programming this keyword act as a grammatical word. Here we define only those keyword that we use in our program. The next grammatical part is Function.
What is Function ?
The function is very little part of program or you can say function is Sub-Program. Actually function is group of statement/instruction for doing particular work. When we make program we have to write some codes again and again because of this the time and complexity of program is increase and short sized programs are become large. Function play important role in programming without function you can't done. There are two type of function C such as predefine function (Built in functions) and User defined function. I will describe function in my post letter.
No comments:
Post a Comment