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 is putchar() function?
How do you define a string?
What do you mean by a local block?
Explain how do you list files in a directory?
What is the difference between null pointer and wild pointer?
Is c object oriented?
Linked lists -- can you tell me how to check whether a linked list is circular?
Difference between pass by reference and pass by value?
What is the most efficient way to store flag values?
What is meant by operator precedence?
What do you mean by c what are the main characteristics of c language?
What is the deal on sprintf_s return value?
What are the advantages of using macro in c language?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is the difference between the local variable and global variable in c?