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 many header files are in c?
What is wrong with this statement? Myname = 'robin';
What is page thrashing?
What is sizeof int?
Is fortran still used in 2018?
What is pivot in c?
how logic is used
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is the explanation for modular programming?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
How can you invoke another program from within a C program?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is the process of writing the null pointer?
how do you programme Carrier Sense Multiple Access
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a