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

add the sum of elements in array a and then that of array
b.. subtract the sums of the two arrays a and b. ul get the
missing element

Is This Answer Correct ?    48 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1317


What is difference between && and & in c?

595


How to explain the final year project as a fresher please answer with sample project

466


Compare interpreters and compilers.

637


What is the difference between strcpy() and memcpy() function in c programming?

626






What is c++ used for today?

664


Why doesn't C support function overloading?

1615


Do you have any idea about the use of "auto" keyword?

662


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

719


Are c and c++ the same?

627


Explain what is the stack?

635


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1672


Who invented bcpl language?

703


Are pointers really faster than arrays?

561


What are the different types of linkage exist in c?

613