Post-Test
- What is the output of C Program with String Arrays.?
- What is the output of C Program with String arrays.?
- What is the output of C Program?
- Choose a correct C Statement about Strings.
- How do you accept a Multi Word Input in C Language.?
int main()
{
char p[] = "GODZILLA";
int i=0;
while(p[i] != '\0')
{
printf("%c",*(p+i));
i++;
}
}
G
GODZILLA
Compile error
None of the Above
int main()
{
char *p1 = "GOAT";
char *p2;
p2 = p1;
p2="ANT";
printf("%s", p1);
}
ANT
GOAT
G
A
int main()
{
char *p1 = "GOAT";
char *p2;
p2 = p1;
printf("%s", p2);
}
GOAT
Compile Error
None Of the Above
PRINTF is capable of printing a multi word string.
PUTS is capable of printing a multi word string.
GETS is capable of accepting a multi word string from console or command prompt
All the above
SCANF
GETS
GETC
FINDS
