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; }
1 Antwort
#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; }