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 are structures and unions? State differencves between them.

620


Do you know null pointer?

616


What is operator promotion?

635


Is c easier than java?

578


What does the c preprocessor do?

625






In c language can we compile a program without main() function?

584


Explain Function Pointer?

685


Why doesn't C support function overloading?

1624


What is the use of ?

628


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2061


What is c preprocessor mean?

797


int far *near * p; means

3129


How can I do peek and poke in c?

623


How can I sort more data than will fit in memory?

632


What is the code for 3 questions and answer check in VisualBasic.Net?

1696