Single Line Comment in CIn C programming single line comment is used to hide a line of code from being compiled by C compiler.
If you are commenting a line then that line is not going to be a part of your C program. Single line comment is very easy to use, just you have to put // at the beginning of the line. Let's take an example.
Example-
int a=20, b=30, c=0;
// sum here
c=a+b;
printf("The sum of a and b is %d", c);
Output
The sum of a and b is 50
In the above program, you can see I have used single line comment