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 (2265)
 C++ interview questions  C++ Interview Questions (1119)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (648)
Question
write a method for an array in which it can display the 
largest n next largest value.
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
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
 
Why doesn't C have nested functions?   2
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know. TCS 7
What are the different flags in C? And how they are useful? And give example for each in different consequences?   1
Define function ?Explain about arguments? Geometric-Software 2
What is the difference between null pointer and void pointer CTS 6
What are .h files and what should I put in them?   3
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10 Aspire 8
How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal) Subex 1
Predict the output or error(s) for the following: 25. main() { printf("%p",main); } ME 3
program to find the magic square Infosys 1
main() { int a; a=++100; printf("%d",a); getch(); }   4
Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console. HCL 3
 
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