GATE Papers >> CSE >> 2014 >> Question No 121

Question No. 121 CSE | GATE 2014

Suppose n and p are unsigned int variables in a C program. We wish to set p to nC3.If n is large, which one of the following statements is most likely to set p correctly?


Answer : (B) p = n * (n-1) / 2 * (n-2) / 3;


Comments
No Comments
Leave a comment