Question:What will be output when you will execute following c code?
#include<stdio.h>
void main(){
     int x=3;
     while(1){
        switch(x){
             case 5/2: x+=x+++x;
             case 3%4: x+=x---x;continue;
             case 3>=3: x+=!!!x;break;
             case 5&&0:x+=~~~x;continue;
             default: x+=-x--;
        }
        break;
     }
     printf("%d",x);   
}
Choose all that apply: 

A 3 

B -1 

C 5 

D Compilation error 

E None 

+ Answer
+ Report
Total Preview: 821

Copyright © 2024. Powered by Intellect Software Ltd