First C program, Hello World

First C program, Hello World

Open a text editor vi, emacs, notepad or turboc++or console project in Visual Studio

i used turboc++

#include<stdio.h>                             /* standard header for input/output */
   
    int main()

    {
                 clrscr();
     printf(“Hello World\n”);  /* printf() prints the content inside quotation
we can use putchar() method*/

         return 0;                          //because main () function return nothing

    }

output of program:

Save the program with the name: hello.c

the C and C++ console programs. That means they use text to communicate. All compilers support the compilation of console programs.


Comments

Popular posts from this blog

Python Program to Print all Prime Numbers in an Interval

C program print integer

Python Program to Check Prime Number