Comments
In C language, you can use comments in your source code, that are not executed as part of the program. Comments are especially important in large projects because in those projects hundreds or thousands of lines of source code.
In C programming language comments are two types:
- Single-line comments
- Multi-line comments
In C programming language comments are two types:
- Single-line comments: Single line comments are represented as a double slash.
Example of single line comments
#include
int main(){ // technical funda printf("Hello C"); return 0; } Output
Hello C
- Multi-line comments: Multi-line comments are represented as a slash asterisk.It can be occupy many lines of code.
Example of Multi line comments
#include
int main(){ /* The Technical Funda */ printf("Hello C"); return 0; } Output
Hello C
Submit your review | |
The Technical Funda
Average rating: 0 reviews