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
What do the functions atoi(), itoa() and gcvt() do?
c program for searching a student details among 10 student details
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What is variables in c?
What are the c keywords?
What is echo in c programming?
What does == mean in texting?
Write a program to reverse a string.
Why do we need functions in c?
What are high level languages like C and FORTRAN also known as?
In a header file whether functions are declared or defined?
code for replace tabs with equivalent number of blanks
How to get string length of given string in c?
What is data structure in c language?
Are pointers integers in c?