Q:

What will be output of the following c code?

0

What will be output of the following c code?

#include
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;
}

  1. -4
  2. 5
  3. 1
  4. -1

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).-4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now