Home / MCQ Bank / Computer
Computer Structure And Union

What will be the output of the following C code? #include <stdio.h> struct student fun(void) { struct student { char *name; }; struct student s; s.name = "alan"; return s; } void main() { struct student m = fun(); printf("%s", m.name); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • Compile time error

Related Computer Questions

Will the following C code compile without any error? #include <stdio.h> int main() { int k; { int k; for (k = 0; k < 10; k++); } } What is the keyword used to inherit a class in C#? The windows feature is the ability of computer to automatically configure a new hardware component is that The C code 'for(;;)' represents an infinite loop. It can be terminated by ______ In the merge process, you can