main() function in C : main function « Language « C Tutorial






In all C programs, the starting point is the main() function.

Every C program has one.

#include <stdio.h>
  
int main()
{
    printf("Goodbye!\n");
    return(0);
}
Goodbye!








1.3.main function
1.3.1.main() function in C