Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would rep..

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

There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would rep..

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

Post New Answer

More C++ General Interview Questions

What is binary search in c++?

0 Answers  


List down the guideline that should be followed while using friend function.

0 Answers  


What is the difference between a definition and a declaration?

0 Answers  


How many characters are recognized by ANSI C++?

0 Answers   Hexaware, NIIT,


How to change constant values?

6 Answers   Huawei, Symphony,


Discuss the possibilities related to the termination of a program before entering the mainq method?

0 Answers  


What is the rule of three?

0 Answers  


What is a multiset c++?

0 Answers  


What are the various compound assignment operators in c++?

0 Answers  


Is c better than c++?

0 Answers  


When there is a global variable and local variable with the same name, how will you access the global variable?

0 Answers  


Should a constructor be public or private?

0 Answers  


Categories