LogiQuest
Back to Structures, Unions, Enums
2

What will be the output of the program?

#include <stdio.h>
enum Color { RED, GREEN = 5, BLUE };
int main(void) {
    printf("%d %d %d\n", RED, GREEN, BLUE);
    return 0;
}
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.