Programming Rule

  •  Each instuction in a C program is written as a seperate statement. Therefore, a complete C program would comprise a series of statements.
  • The statement in a C program must appear in the same order in which we wish them to be executed, unless of course the logic of the problem demands a deliberate 'jump' or transfer of  control  to a statement which is out of sequence.
  • Blank space may be inserted between two words to improve the readability of  the statement. However, no blank spaces are allowed within a variable, contant or keyword.
  • All statements are entred in small case letters.
  • C has no specific rules for the position at which a statement is to be written. That's why it is often called a free-from language.
  • Every C language must end with a ;(semicolon). Thus ; acts as a statement terminator.
  • The opening and closing braces should be balanced.
   PROGRAM TO PRINT A MESSAGE



Post a Comment

2 Comments