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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why null pointer is used?

1004


What does new do in c++?

1032


What are static member functions?

1056


What is a virtual destructor? Explain the use of it?

957


Define a constructor?

1011


What is the identity function in c++? How is it useful?

1007


What is endl c++?

1047


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1019


Is c++ vector a linked list?

959


How is computer programming useful in real life?

1024


When should overload new operator on a global basis or a class basis?

1042


What is a multimap c++?

1151


Why cstdlib is used in c++?

1001


Why is c++ still popular?

998


Is c++ double?

989