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 |
main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 Answers Vector, Vector India,
What is string concatenation in c?
How do you list a file’s date and time?
When is an interface "good"?
Differentiate between ordinary variable and pointer in c.
What's the best way to declare and define global variables?
What header files do I need in order to define the standard library functions I use?
how to make a scientific calculater ?
What is Function Pointer? Explain with example?
What is the purpose of scanf() and printf() functions?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What are register variables in c?