What will be the output of the following C code?
#include <stdio.h>
enum sanfoundry
{
a=1,b,c,d,e
};
int main()
{
printf("%d",b*c+e-d);
}
Answer: B
Correct answer: 7
Values run on from the one given: a = 1, so b = 2, c = 3, d = 4, e = 5. Then
Please log in or register to report this question.