A
Q. What will be the output of the following C code? (If the input is "Hello world")
Code:
#include <stdio.h>
int main()
{
char str[30];
scanf("%s", str);
printf("%s", str);
return 0;
}
int main()
{
char str[30];
scanf("%s", str);
printf("%s", str);
return 0;
}
- Correct Answer - Option(B)
- Views: 29
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.