-
Which of the following statements are correct about the code snippet given below?
int number = 10;
int p = number > 5 ? p = 30;
-
- First; is treated as a null statement
- Second; is treated as a statement terminator
- 30 would be assigned to p
- Compiler would report an error
Correct Option: D
Compiler would report an error.
error: expected ':' before ';' token