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...

if array a conatins 'n' elements and array b conatins 'n-1'
elements.array b has all element which are present in array
a but one element is missing in array b. find that
element.

Answer Posted / rahul

define one variable say t_max and save a[0] in that,loop
through it, if a[1] is grater than a[0] save a[1] in t_max
otherwisw a[0] remain as it is....check it same way for all
elemnts in array...finally t_max will hold max elemnt from
array.

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language & why it is used?

1116


Is c language still used?

986


Why do we use main function?

1186


What are the types of data files?

1206


Can we initialize extern variable in c?

1140


What is the use of typedef in structure in c?

975


Define circular linked list.

1037


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1099


Explain what is the benefit of using enum to declare a constant?

1096


What is variable initialization and why is it important?

1268


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1085


What is the purpose of clrscr () printf () and getch ()?

1073


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1090


What is build process in c?

1160


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1110