First C program
#include <stdio.h>
int main()
{
printf("I am a Programmer\n");
return 0;
}
Output:
I am a Programmer
In the next tutorials, we will understand this code point by point.
Happy Coding
See you in next tutorial
Next Post:
https://coderavens.blogspot.com/2018/05/c-programming-42-main-function.html
Semicolon Issue
we have to remember one important thing always
end of every statement in C we have to put a semicolon
From the first code, there are two statements
end of every statement in C we have to put a semicolon
From the first code, there are two statements
printf("I am a Programmer\n");
return 0;
and both of them have a semicolon at the end of the line or statement
Some people find this annoying 😒 but like it or not we have to be careful about this
Happy Coding
See you in next tutorial
Next Post:
https://coderavens.blogspot.com/2018/05/c-programming-42-main-function.html
Comments
Post a Comment