Sample Program
FORMAT OF A SIMPLE C PROGRAM:
main() Function
name
{
// Start of program
------
——— Program
statements
———
} End of program
/* A program that prints out the sentence */
#include <stdio.h>
int main (void)
{
printf ("This is my first C
program.\n");
return (0);
}
Comments
Post a Comment