In general doubt regarding output of following code

It should be A, right??

No, bro it should be only. Let me explain
first it will calculate (x>4) it is true as x is equal to 5. True is represented by 1. so expression (x>4) will be replaced by 1. after then resulting expression will be (1>3) which is false
so output will B
You can check this by expression if((x>4)>0) it will give you A

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.