What will be output of the following c code? [code] #include<stdio.h> const enum Alpha { X, Y=5, Z }p=10; int main() {

What will be output of the following c code?
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
 

Tìm kiếm

Back
Top