First C Program!!!
We have learned enough basics.
So, now let's try out programs.
Let's start with first program.
#include<stdio.h>
void main()
{
printf("Hello World!!!");
}
Output:
Meaning of terms:
So, now let's try out programs.
Let's start with first program.
#include<stdio.h>
void main()
{
printf("Hello World!!!");
}
Output:
Meaning of terms:
- <stdio.h> This is header file. Its fullform is Standard Input Output.
- void main() It is function in which we have all our code written.
- printf() It is a function which prints anything within parenthesis brackets i.e. () and double quotes i.e. " "
- Note: Always write semicolon in front of all statements (except those having loops or conditions or main function).
No comments:
Post a Comment