Professional Documents
Culture Documents
Nested IF
Nested IF
BRANCHING
1/77
SELECTION STRUCTURE:
NESTED IF-ELSE STATEMENT
Answer:A
Answer: else loop executed;j=1
Answer:B
Answer:A
Answer:B
Answer:C
Answer:B
Which of the following statements are correct about the
below program?
#include <stdio.h>
int main()
{
int i = 10, j = 15; if (i % 2 = j % 3)
printf("REC");
return 0;
}
A. Error: Expression syntax
B. Error: Lvalue required
C. Error: Rvalue required
D. The Code runs successfully