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
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
How can I implement sets or arrays of bits?
how many errors in c explain deply
Why isnt any of this standardized in c?
What is string constants?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Explain how are portions of a program disabled in demo versions?
Why ca not I do something like this?
What was noalias and what ever happened to it?
How many types of errors are there in c language? Explain
Describe static function with its usage?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Why doesnt this code work?
What is the purpose of realloc()?
How can I access an I o board directly?