There is a array of 99 cells and we have to enter 1-100
elements in it , no two elements would repeat , so the is one
no. missing because 99 cells and 1-100 nos. so we had to
implement a function to find that missing no.
Answers were Sorted based on User's Feedback
Answer / amty
Get the sum of numbers
total = n*(n+1)/2
Subtract all the numbers from sum and
you will get the missing number.
| Is This Answer Correct ? | 41 Yes | 2 No |
Answer / shiva sahu
Get the sum of numbers
total = n*(n+1)/2
Subtract all the numbers from sum and
you will get the missing number.
this is not mine,but this ans is right
| Is This Answer Correct ? | 22 Yes | 0 No |
What is recursion?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What are the two shift operators and what are their functions?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What kind of jobs can I get with c++?
When to use “const” reference arguments in a function?
What is exception handling in C++?
What are 2 ways of exporting a function from a dll?
What is virtual function? Explain with an example
Write a function to find the nth item from the end of a linked list in a single pass.
What is the difference between = and == in C?
20 Answers Christ University, Intel,
What is the difference between #define debug 0 and #undef debug?