Question:What will be output when you will execute following c code?
#include<stdio.h>
void main(){
     int a=5;
     a=a>=4;
     switch(2){
        case 0:int a=8;
        case 1:int a=10;
        case 2:++a;
        case 3:printf("%d",a);
     }
}
Choose all that apply: 

A 8 

B 11 

C 10 

D Compilation error 

E None 

+ Answer
+ Explanation
+ Report
Total Preview: 896

Copyright © 2024. Powered by Intellect Software Ltd