C MCQ Set-26 : Multiple Choice Questions in C Set-26
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) alan alan alan turingb) alan alan turing turingc) alan turing alan turingd) run time error Answer : A Which of the following will stop the loop at …
C MCQ Set-26 : Multiple Choice Questions in C Set-26 Read More »