Which one of the following will set the value of y to 5 if x has the value 3, but not otherwise ?
A. if (x = 3) y = 5
B. if x = = 3 (y = 5)
C. if (x = = 3); y = 5
D. if (x = = 3) y = 5
Answer:D
Which one of the following will set the value of y to 5 if x has the value 3, but not otherwise ?
A. if (x = 3) y = 5 B. if x = = 3 (y = 5) C. if (x = = 3); y = 5 D. if (x = = 3) y = 5