1.

Which of the following statements are correct about the code snippet given below?
int number = 10;
int p = number > 5 ? p = 30;

A. First; is treated as a null statement
B. Second; is treated as a statement terminator
C. 30 would be assigned to p
D. Compiler would report an error
Answer» E.


Discussion

No Comment Found

Related MCQs