Q187
What will be the output of the following C code? #include int main() char *str = "hello world"; char strc[] = "good morning india "; strcpy(strc, str); printf("%s ", strc); return 0;
A.
hello world
AnswerB.
hello worldg india
C.
Compile time error
D.
Undefined behaviour
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board