- A comment in your program is the text that the compiler ignores.
- This text does not execute like rest statements.
- The comments program is used to define a statement or program.
/* Your comment will be here */
To define comments in C language, forward slash (/) and asterisk (*) are used.
#include <stdio.h>
int main() /* Main function starts from here*/
{
printf(“Hello World!”);/* This statement will print Hello World message */
return 0;
}
Through the comments given above, the program has given explanation about the program and other statements.
Hello World!
No comments:
Post a Comment
Please do not any spam link in Comment Box