enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
Answer:
0..1..2
Explanation:
enum
assigns numbers starting from 0, if not explicitly defined.
Blog Author: Vijay Kumar
Go to: Java Aptitude
Blog Author: Vijay Kumar
Go to: Java Aptitude
No comments:
Post a Comment