

MCQOPTIONS
Saved Bookmarks
1. |
Suppose n and p are unsigned int variables in a C program. We wish to set p to nC3. If n is large, which of the following statements is most likely to set p correctly? A |
A. | p = n * (n-1) * (n-2) / 6; |
B. | p = n * (n-1) / 2 * (n-2) / 3 |
C. | p = n * (n-1) / 3 * (n-2) / 2; |
D. | p = n * (n-1) * (n-2) / 6.0; |
Answer» C. p = n * (n-1) / 3 * (n-2) / 2; | |