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
Explain the process of converting a Tree into a Binary Tree.
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
How can I recover the file name given an open stream or file descriptor?
What is scanf_s in c?
Tell us two differences between new () and malloc ()?
How can I determine whether a machines byte order is big-endian or little-endian?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Why are algorithms important in c program?
Is javascript written in c?
Is null a keyword in c?
How can I direct output to the printer?
how is the examination pattern?
write a program to create a sparse matrix using dynamic memory allocation.
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if