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 / sumanth
firt do sum of n elements in first array a i.e., n(n+1)/2
next the sum of n-1 elements in second array b i.e., n(n-1)/2...
from diff of these 2 sums we will get the missing element in b
Is This Answer Correct ? | 30 Yes | 11 No |
Post New Answer View All Answers
How are variables declared in c?
What does printf does?
please send me the code for multiplying sparse matrix using c
Differentiate between calloc and malloc.
What are the uses of null pointers?
Why doesnt this code work?
write a program fibonacci series and palindrome program in c
how to find anagram without using string functions using only loops in c programming
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Explain what is the difference between #include and #include 'file' ?
What is the use of extern in c?
Can variables be declared anywhere in c?
Which are low level languages?
Is c dynamically typed?
How can you determine the maximum value that a numeric variable can hold?