Thursday, 20 September 2012

c program print string


This program print a string. String can be printed by using various functions such as printf, puts.

Code

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

No comments:

Post a Comment