Home » C Programming » Control Instructions

Which of the following statements are correct about the below program? #include int main() { int i = 10, j = 15; if(i % 2 = j % 3) printf("CuriousTab\n"); return 0; }

Correct Answer: Error: Lvalue required

Explanation:

if(i % 2 = j % 3) This statement generates "LValue required error". There is no variable on the left side of the expression to assign (j % 3).

← Previous Question Next Question→

More Questions from Control Instructions

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion