How will the compiler work when we simply pass a value in if statement For eg. If(32) Cout<<"true"; Else Cout<<"false"; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How will the compiler work when we simply pass a value in if statement For eg. If(32) Cout<<"true"; Else Cout<<"false";

20th Sep 2017, 4:28 PM
dhiman mishra
dhiman mishra - avatar
1 Answer
0
you can translate it as follows if(32!=0) cout<<"true"; else cout<<false; this outputs the same result as the example you wrote
20th Sep 2017, 4:54 PM
Kostas Batz
Kostas Batz - avatar