MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C function?#include <stdio.h> enum car {AstonMartin, Audi, Chevrolet, Ferrari}; enum color {Yellow = 5, Green, RedBlue, Blue}; int main() { enum car c = Yellow; int i; i = c; printf("%d n", i); return 0; } |
| A. | Compilation Error |
| B. | Yellow |
| C. | AstonMartin |
| D. | 5 |
| E. | Runtime Error |
| Answer» E. Runtime Error | |