Question:What will be output when you will execute following c code?
#include<stdio.h>
enum A{
    x,y=5,
    enum B{
         p=10,q
    }varp;
}varx;

int main(){
    printf("%d %d",x,varp.q);
    return 0;
}
 

A 0 11 

B 5 10 

C 4 11 

D 0 10 

E Compilation error 

+ Answer
+ Explanation
+ Report
Total Preview: 862

Copyright © 2024. Powered by Intellect Software Ltd