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 / sanket

take first element of array a then compare with all the elements in array b.
if it matches take second element in array a and do the same like this u will get the missing elements.
and depending on the size of the array there are different methods..

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a structural principle?

643


What is the difference between int main and void main in c?

595


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

768


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1632


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1711






Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

630


Is that possible to add pointers to each other?

907


Differentiate between the = symbol and == symbol?

720


What is a const pointer in c?

674


Differentiate between null and void pointers.

635


What does d mean?

588


What is bin sh c?

584


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

660


What are the preprocessor categories?

641


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1719