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 / rahul
define one variable say t_max and save a[0] in that,loop
through it, if a[1] is grater than a[0] save a[1] in t_max
otherwisw a[0] remain as it is....check it same way for all
elemnts in array...finally t_max will hold max elemnt from
array.
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
In a switch statement, explain what will happen if a break statement is omitted?
What is a header file?
What is a structure member in c?
What is structure of c program?
What is the use of bitwise operator?
What does a function declared as pascal do differently?
What is a program flowchart and explain how does it help in writing a program?
Explain how do you print an address?
What is selection sort in c?
What are the rules for the identifier?
What are external variables in c?
What is the use of sizeof?
Using which language Test cases are added in .ptu file of RTRT unit testing???
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What does void main return?