Earn free bitcoin

10 March 2018

How to use comments

#include<stdio.h>
#include<conio.h>
main()
{
//clrscr();  //clears the screen
printf("This program explains comments"); /*how to use comment*/
}


Output:-This program explains comments
--------------------------------
Process exited after 0.01003 seconds with return value 0
Press any key to continue . . .

Explanation:-
// use for single line comment
/* use for multiple line comment*/
// clrscr(); not support in dev c++ compiler,defined in header file <conio.h>

Thank you

0 comments:

Post a Comment