Question:What will be output when you will execute following c code?
#include<stdio.h>
const enum Alpha{
      X,
      Y=5,
      Z
}p=10;
int main(){
    enum Alpha a,b;
    a= X;
    b= Z;
    printf("%d",a+b-p); 
    return 0; 
}
 

A -4 

B -5 

C 10 

D 11 

E Error: Cannot modify constant object 

+ Answer
+ Explanation
+ Report
Total Preview: 1118

Copyright © 2024. Powered by Intellect Software Ltd