1.

What will be the output of the following C code?#include <stdio.h> struct Country { char *name; }; struct Country function(void) { struct Country cnt1; cnt1.name = "India"; return cnt1; } void main() { struct Country cnt2 = function(); printf("%s", cnt2.name); }

A. India
B. Compilation Error
C. Garbage value
D. Nothing
E. None of these
Answer» B. Compilation Error


Discussion

No Comment Found

Related MCQs