In the C programming language Data type, operator, identifiers, keywords, constants, and variables are the basic building blocks of C Program.Before starting program first we must know :
2. How to construct constant, variable and keywords by using this alphabets digits and special symbols.
- What alphabet digit and special symbols are used in C.For writing a C program you must have the basic knowledge of following things.If you didn't read this topic you can read here by clicking these link:
- structure of C program.
- what is character and identifier in C.
- what is constants in C.
- what is variable in C.
- what is keyword in C.
2. How to construct constant, variable and keywords by using this alphabets digits and special symbols.
3. How these are combined to form an instruction.
4. A group of instruction would be combined to form an program.
Step to learning C program
Rules for writing a C programs and statements:
- Every C program should begin with 'main()' function.
- Blank spaces can be inserted in between two words to improve readability of the statement.However,no blank spaces are allowed inside a variable, constant and keyword.
- Usually all statements are entered in lower case letters.
- C has no specific rules for the position at which a statement is to be written.So it is typically known as free-form language.
- Any C statement always end with a semicolon (;).
0 comments:
Post a Comment