C Program to Print a String

C – Print a String C language Program Code

#include
#include
void main()
{
char s;
clrscr();
printf(“Enter a string:n”);
scanf(“%s”,s);
printf(“%s”,s);
getch();
}

Add Comment