The '//' is used as single line comment : Comments « Language « C Tutorial






#include <stdio.h>
main(){
    int i,j,k;
   
    i = 6;    
    j = 8;
    k = i + j;
   
    printf("sum of two numbers is %d \n",k); // end of line comment
}
sum of two numbers is 14








1.15.Comments
1.15.1.Adding Comments
1.15.2.Using Comments to Disable
1.15.3.The comments are enclosed in '/*...*/'
1.15.4.The '//' is used as single line comment
1.15.5.Source code header comments