adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
enum colors {comp,sci,edu};
int main()
{
  printf("%d %d %d",edu,comp,sci);
  return 0;
}

a.

3 1 2

b.

0 1 2

c.

2 0 1

d.

1 0 2

Answer: (c).2 0 1

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?