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

Explain the process of converting a Tree into a Binary Tree.

2607


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2714


How can I recover the file name given an open stream or file descriptor?

1029


What is scanf_s in c?

1063


Tell us two differences between new () and malloc ()?

1112


How can I determine whether a machines byte order is big-endian or little-endian?

999


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

973


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1225


Why are algorithms important in c program?

1064


Is javascript written in c?

1011


Is null a keyword in c?

1135


How can I direct output to the printer?

1270


how is the examination pattern?

1960


write a program to create a sparse matrix using dynamic memory allocation.

4831


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

1088