Live quiz

C Programming - Part 61

Question 1 of 25 Hints left: 3
Q1

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

  • A
  • B
  • C
  • D