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 |
Write about the stack unwinding?
Write a program to calculate the BMI of a person using the formula BMI = weight/height2.
What is prototype for that c string function?
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
Can we use resume in error handling i.e. in the catch block
What are the three forms of cin.get() and what are their differences?
How many types of comments are there in c++?
What are libraries in c++?
What are c++ manipulators?
What is microsoft c++ redistributable 2013?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
You want to link a c++ program to c functions. How would you do it?