• Call Us: +91 9437911966
  • Email Us: [email protected]
  • Home
  • C Examples
  • Server Side
    • PHP
    • Java
    • CodeIgniter
    • Laravel
    • JSP
    • JDBC
  • Frontend
    • HTML
    • CSS
    • Javascript
    • jQuery
    • AJAX
    • FPDF
    • TCPDF
  • APP & DB
    • Android
    • Cordova
    • SQL
    • Oracle
  • Project
C Tutorial C Introduction C Characteristic C Comments C Operator C Assign Operator C Arithmetic Oper.. C Logical Operator C Modulus Operator C Variable C Initialise Variable C Print F C Translators C Programming C Control Flow C If Else Statement C Nested If Else C Loops C While Loops C For Loops C Do While C Nested Loops

C Comments

   

Comments are used to provide information about a line of code or block of code for a developer. We can easily remember by showing the comments.

When we are using comments in the programming then that specific part of the programming is ignored by compilers.

In c programming language we having 2 types of comments i.e.

  • Single Line
  • Multi Line

Single line comments can be provided by using //.

Multi line comments can be provided by using / * - - - - */.

When we are working with multiline comments then nested comments are not

possible i.e. comments within the comments.

Example(Single Line comment):

#include<stdio.h>    
          int main(){    
//Hello World Example    
printf("Hello World");    
            return 0;  
         }     

	

Example(Multi Line comment):

#include<stdio.h>    
          int main(){    
 
/*printf("Hello World");    
printf("Example");   */
            return 0;
		  }

Student Tutorial is a online tutorial for web design and development. Here you can find easy example and explanation for each tutorial.
Copyright © 2016-2021 Student Tutorial

Server Side

  • PHP
  • Java
  • CodeIgniter
  • Laravel
  • JSP
  • JDBC

Frontend

  • HTML
  • CSS
  • Javascript
  • jQuery
  • AJAX
  • FPDF

App & Database

  • Android
  • Cordova
  • SQL
  • Oracle