write a method for an array in which it can display the
largest n next largest value.
Answer Posted / akshatgarg
well there are many methods one simple method i
Find the largest.
Find the smallest.
replace largest by smallest-1
then again search for the largest.
Now this time u will get the second largest number.
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How will you declare an array of three function pointers where each function receives two ints and returns a float?
code for replace tabs with equivalent number of blanks
string reverse using recursion
which is an algorithm for sorting in a growing Lexicographic order
What does sizeof function do?
Who developed c language and when?
Whats s or c mean?
Are the expressions * ptr ++ and ++ * ptr same?
How do you view the path?
How can I convert a number to a string?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Can we access array using pointer in c language?
Is that possible to store 32768 in an int data type variable?
What is meant by high-order and low-order bytes?