Top

Discussion

What will be the output of the program?

#include

int main()
{
    enum color{red, green, blue};
    typedef enum color mycolor;
    mycolor m = red;
    printf("%d", m);
    return 0;
}

 

  • A.1
  • B.2
  • C.red

Answer:

No comment is present. Be the first to comment.
Loading…

Post your comment