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
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Explain how can you tell whether a program was compiled using c versus c++?
What is difference between static and global variable in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Simplify the program segment if X = B then C ← true else C ← false
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
write a program to display all prime numbers
shorting algorithmS
What are the disadvantages of external storage class?
Can variables be declared anywhere in c?
Is flag a keyword in c?
What is the stack in c?
What is 02d in c?
Stimulate calculator using Switch-case-default statement for two numbers
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.