Computer Science, asked by gohilparthrajsinh098, 18 days ago

Which of the following is an invalid if-else statement? CO2

Answers

Answered by ishatvns1107
1

Answer:

Explanation:

f(if(a==1)){ } is an invalid if statement as we can't write if inside condition.

Answered by vaishnavichourasiyav
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