C program Structure

#include <stdio.h>

int main()
{
/* my first program in C */
printf(“Hello, World! \n”);

return 0;

}

#include is a preprocessor command
int main() is the main function
printf(…) is a function available in C which causes the message “Hello, World!”
return 0 is terminates the main() function and returns the value 0.

Leave a Reply