if condition with single equal:
What will be the output of below C program?
no error no output
compile time error lvalue required.
it prints same. because if(i=11) is an assignment operation, it is not a comparison operator.if we assign any value other than zero to an int variable, then it is true and satisfies the condition. that's why it prints "same".
Back To Top