ADITI Company Programming Program

Q. What is the output for the program given below

typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}

Read Solution (Total 1)

ADITI Other Question

6. In the program segment in question 5 what is the value of a at the end of the while loop? Q. Give the output for the following program.

#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %dn",x,y);
}