Tuesday, 10 November 2015

PROGRAMMING STYLE


  • All statements should be written in lowercase letters
  • Uppercase letters are used only for symbolic constants
  • The programmer can write the statement anywhere between the two braces following the declaration part
  • The user can also write more than one statement in one line separating them with a semicolon
  • The opening and closing braces should be balanced, i.e., if opening braces are three, then closing braces should also be three
  • Use comments whenever necessary.
  • Comments increase the program readability and also help to understand the program logic

No comments:

Post a Comment