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 |
check whether a no is prime or not.
Differentiate between a template class and class template in c++?
When can I use a forward declaration?
What are the benefits of c++?
Explain the different access specifiers for the class member in c++.
What is the difference between equal to (==) and assignment operator (=)?
How is data hiding achieved in c++?
What are the important differences between c++ and java?
Describe new operator?
can output 5 students using one dimensional array
Differentiate between the manipulator and setf( ) function?
the maximum length of a character constant can be a) 2 b) 1 c) 8