Sunday, 22 September 2013

C PROGRAM EXAMPLES

HELLO WORLD

/C hello world example
#include <stdio.h>
 
int main()
{
  printf("Hello world\n");
  return 0;
}

SAME PROGRAM

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

No comments:

Post a Comment