0

what will be output of this code.../?

#include<iostream> using namespace std; int main() { int x=0; switch(x) { case 0:cout<<x++; case 1:cout<<--x; break; case 2:x+=5; } if(x==5) { cout<<"1"; } return 0; }

4th Aug 2017, 11:30 AM
Siddharth K
Siddharth K - avatar
1 Antwort