Comments

Comments in 'C' language: 

  • Comments are used to give guidelines to a user of a program. 
  • Comments are never processed by compiler instead compiler ignores them.
  • Comments can be either single line or multiple line. C supports both single as well as multi line comments.
  • Single line comments starts with //. For example //This is a single line comment
  • Multiple line comments are enclosed or written between /* and */. For example
      /* This is
     
      multi line comment*/

Comments

Popular posts from this blog

Write a program to allocate memory dynamically for n integers. Accept the elements and calculate their sum and average

C program to accept names of n cities and search for city named “Pune”.