What happens when you attempt to compile and run the following code?
#include
using namespace std;
int fun(int x) {
return 2*x;
}
int main(){
int i;
i = fun(1) || fun(2);
cout << i;
return 0;
Limited Time Offer
25%
Off
Leontine
3 months agoNoe
3 months agoRodrigo
2 months agoCarmen
2 months agoMiesha
2 months agoHelaine
3 months agoLennie
4 months agoYvonne
4 months agoCarylon
4 months agoMariann
2 months agoCarisa
2 months agoAron
3 months agoCarisa
3 months agoCarisa
3 months agoErick
3 months agoBeckie
3 months agoViola
4 months ago