Question:What will be output when you will execute following c code?
#include<stdio.h>
enum actor{
    SeanPenn=5,
    AlPacino=-2,
    GaryOldman,
    EdNorton
};
void main(){
     enum actor a=0;
     switch(a){
        case SeanPenn:  printf("Kevin Spacey");
                         break;
        case AlPacino:  printf("Paul Giamatti");
                         break;
        case GaryOldman:printf("Donald Shuterland");
                         break;
        case EdNorton:  printf("Johnny Depp");
     }  
}
Choose all that apply: 

A Kevin Spacey 

B Paul Giamatti 

C Donald Shuterland 

D Johnny Depp 

E Compilation error 

+ Answer
+ Explanation
+ Report
Total Preview: 800

Copyright © 2024. Powered by Intellect Software Ltd