#include <stdio.h> int main() { enum {Blue = 4, Green, Yellow = 5, Red}; printf("Red = %d\n", Red); }
In enum, the value of constant is defined to the recent assignment from left.
Previous Question Next Question
Your comments will be displayed only after manual approval.