Vidyalelo
C Programming · Q196

C Fundamentals

Programming · C Programming · question 196

Q196

What will be the output of the following C code? (If the name entered is: Shyam) #include #include typedef struct employee char name[50]; int salary; e1; void main( ) printf("Enter Employee name"); scanf("%s",e1.name); printf(" %s",e1.name);

A.
Shyam.name
B.
nShyam
C.
Shyam
D.
Error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board