0
how is this piece of code works. if (5) cout<<"hai"; else cout<<"hello"; how the conditional loop works ...??? I mean here what does the loop checks here and how it is checked??
2 Answers
0
Here 5 is true since it is non zero number. All numbers except 0 are true,even negative numbers
0
if(true || 1){}else(false || 0){}