A
Q. What is the output of C program with strings?
Code:
int main()
{
char str[2];
scanf("%s", str);
printf("%s",str);
return 0;
}
//Input: South
{
char str[2];
scanf("%s", str);
printf("%s",str);
return 0;
}
//Input: South
- Correct Answer - Option(B)
- Views: 26
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.