Saturday, 28 April 2012

Hello world program

      value to list hello community. This program printing hello community, printf operate is used to display textual content on display, '\n' locations pointer on the beginning of next line. This may be your first c value while learning development.

#include<stdio.h>
void  main()
{
      printf("Hello world\n");
      getch(0;
}

We may store "hello world" in a character array and then print it.

#include<stdio.h>
void main()
{
      char string[ ] = "Hello World";
      printf("%s\n", string);
      getch();
}

output:-


No comments:

Post a Comment