Basic structure of C
Let's start C
#include <stdio.h> (it means preprocessing command) It generally tells to the compiler that we need a (#include <stdio.h>) named file in this program, then this program will work.
int main() (it is a function) We have used functions to break a programs in a parts, main is a very special kind of function because it is a initial point of a program, Where as the int means the integer value returns to the operators.
return 0; It will return the integer to the operating system, where as (0) means it will return 0 if everything will be fine (in true condition).
move on to code:👇
#include <stdio.h>
int main()
{
printf("Hello world\n");
return 0;
}
Nice blog
ReplyDelete