write a method for an array in which it can display the
largest n next largest value.
Answer / 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 |
FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?
what are the advantages of a macro over a function?
What is meant by realloc()?
Why do we use return in c?
What's a good way to check for "close enough" floating-point equality?
What is break statement?
What is return in c programming?
The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters
write a program in c language to print your bio-data on the screen by using functions.
6 Answers College School Exams Tests, IBM,
What are the similarities between c and c++?
Find if a number is power of two or not?
#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }