+ 3

What is the output of this code

Int a = 0; if(a++) cout<< ++a*4; else cout<< ++a*2;

4th Jun 2020, 6:01 AM
Jahid Ali
Jahid Ali - avatar
3 Answers
+ 2
4 Make sure int is lowercase. You can run this by going to the 'code' tab and pressing the plus. This will allow you to write code.
4th Jun 2020, 7:00 AM
Olivia
Olivia - avatar
+ 1
4
5th Jun 2020, 6:49 AM
Rabi Kumar Singh
Rabi Kumar Singh - avatar
0
Just run this code in compiler given in this app only, you will come to know. Thanks
4th Jun 2020, 6:05 AM
Hardik Sharma
Hardik Sharma - avatar