6 Answers
New Answer3/13/2017 4:25:00 AM
Nour Alnaser6 Answers
New Answerdon't have a compiler to test it but I guess it will output 0. bool y=5; => y=true; cout << y/2 ( true / 2 = 1 / 2 = 0 ) << endl;
Yes, it is, but more,try this code bool y=5; cout<<y; So, All the numbers in the language c++ are true, but after store into bool variable there is only 1 value,
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message