What is function of this program?

void main()
{
char a[50];
printf("Enter string\n");
scanf("%[^\n]s",a);
printf("%s",a);
}

Posted on by