find second largest element in array w/o using sorting
techniques? use onle one for loop.
Answer Posted / tata indicom
What if the first element which you are assigning to max and
secondmax is itself the largest number in array.....
In such a case you will not be able to find second largest in
the array.....
Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
The statement, int(*x[]) () what does in indicate?
How to define structures? ·
Why pointers are used in c?
What does %2f mean in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What's the difference between constant char *p and char * constant p?
What is c language and why we use it?
What are the preprocessor categories?
What is the difference between exit() and _exit() function in c?
Are c and c++ the same?
What is getch () for?
What is the difference between functions abs() and fabs()?
What is the use of a static variable in c?
Explain what is the advantage of a random access file?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory