Search This Blog

Thursday, August 4, 2016

Here is another simple C program

Here is another simple C program for beginners......

                 #include<stdio.h>
                 int main(void)
           {
                printf("\n This is ");
                printf(" another c ");
                printf(" program \n");

                return 0;
          }




[N.T = You can write also in same line, 
               like printf(" This is another C program"); ]

This program display " This is another C program", on the screen. The key point to this program is that statements are executed sequentially, beginning with the opening curly brace and ending with the closing curly brace. 






No comments:

Post a Comment