Live quiz

C Programming - Part 60

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 s[2]; void main() { s[0].name = "alan"; s[1] = s[0]; printf("%s%s", s[0].name, s[1].name); s[1].name = "turing"; printf("%s%s", s[0].name, s[1].name); }

  • A
  • B
  • C
  • D