C Programming :: String - Discussion
Home > C Programming > String > MCQs Questions Discussion
16 / 26
Predict the output or error(s) for the following:
#include <stdio.h>
void main()
{
char string[]="Hello World";
display (string);
}
void display (char *string)
{
printf("%s",string);
}
#include <stdio.h>
void main()
{
char string[]="Hello World";
display (string);
}
void display (char *string)
{
printf("%s",string);
}
ACompiler Error : Type mismatch in redeclaration of function display
BHello World
CHello
Dsegmentation fault
Answer: Option (Login/Signup)
Show Explanation