Computer Science, asked by apmandaviya14, 4 months ago

Question 14). The C statement ""if (a == 1 || b == 2) {}"" can
be re-written as

A.if (a == 1) if (b == 2) 0
B.if (a == 1) if (b == 2)
C.if (a == 1); else if (b == 2) 0
D.All of the mentioned​

Answers

Answered by wali99
1

Answer:

I think A ,C cant be there as after condition statement semicolon can't be put I suggest A

Answered by qwnerazzuri
1

if (a == 1); else if (b == 2) (Option C).

Here, the statement states if a is equal to 1 or b is equal to 2 then execute the statement.

Now, option C states that if a is equal to 1 check then again check that if b is equal to 2 then only execute the statement.

Similar questions