Sail E0 Webinar
Question


What will be the output of the program in Turbo C (under DOS)?


#include<stdio.h>
int main()
{
struct emp
{
char *n;
int age;
};
struct emp e1 = {"Dravid" , 23};
struct emp e2 = e1;
strupr(e2.n);
printf("%s\n" , e1.n);
return 0;
}
Options:
A .  Error: Invalid structure assignment
B .  DRAVID
C .  Dravid
D .  No output
Answer: Option B

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers