Thursday, 20 September 2012

c program print string

C programming code

#include <stdio.h>
 
main()
{
    char array[100];
 
    printf("Enter a string\n");
    scanf("%s", array);
 
    printf("You entered the string %s\n",array);
    return 0;
}

No comments:

Post a Comment