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

the question says that we have to find the element which is
not there in array b but there in array a. So we can just
compare each element in a with all the elements in b and if
we don't find a match then that is the desired element.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between actual and formal arguments.

830


Why do we need a structure?

796


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

917


What are the ways to a null pointer can use in c programming language?

888


What are high level languages like C and FORTRAN also known as?

921


Explain the use of function toupper() with and example code?

878


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3271


What is the purpose of clrscr () printf () and getch ()?

800


Can a pointer point to null?

801


What are global variables and how do you declare them?

796


What are the advantages of c preprocessor?

993


List the different types of c tokens?

844


How can this be legal c?

846


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

895


What is a function in c?

1207