Q:

What will be output of the following c code?

belongs to collection: SYSTEMS PROGRAMMING LANGUAGES MCQ

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)

SYSTEMS PROGRAMMING LANGUAGES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
A compiler can check... >>
<< What will be output of the following c code?...