ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
Question
write a method for an array in which it can display the 
largest n next largest value.
 Question Submitted By :: Devi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: write a method for an array in which it can display the largest n next largest value.
Answer
# 1
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
Akshatgarg
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.   2
diff .between strcture and union   2
Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)   2
what is void pointer?   1
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ? IBM 10
wat are the two methods for swapping two numbers without using temp variable??   2
Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference? Infosys 1
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument . Subex 1
difference between c and c++?   2
How would you write qsort?   1
2. Write a function called hms_to_secs() that takes three int values&#8212;for hours, minutes, and seconds&#8212;as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns. TCS 1
what is the difference between c and c++?   7
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com