0
what will be the output of the following function, if it gets called? int func(){ cout<<1; return 2; cout<<3; }
2 Réponses
+ 2
Just 1.
cout << 3;
will never execute because of that return 2; it is returning back to where it was called from.
+ 1
thanks Cohen