Which of the following is an invalid if-else statement? CO2
Answers
Answered by
1
Answer:
Explanation:
f(if(a==1)){ } is an invalid if statement as we can't write if inside condition.
Answered by
0
Answer:
if (a==1) {} is an invalid if statement as we can't write if inside condition. if (a) { } is valid if a is a boolean literal else not.
Similar questions