

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following is good coding practice to determine oddity?
{ return (n & 1)!= 0; } { return n % 2 == 1; } |
A. | i |
B. | ii |
C. | option (i) causes compilation error |
D. | option (ii) causes compilation error |
E. | None of these |
Answer» B. ii | |