An array was given and we were required to write a function
: int CalculateThirdHighest(int a[ ]) : which calculates
the third highest number in the array. While coding in C
remember to calculate the length of array using formulae
length of array=sizeof(a)/sizeof(int). Because the number
of elements of array were not passed as argument.

i want a solution in C/C++ language


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More General Aptitude Interview Questions

Company A taken a truck on rent of $1280 per month another company B bought the truck in $40000 and send $120 per month. After 4 years what will be the difference in the amount spent by the both companies on the TRUCK.

4 Answers   IBM, Navata,


A man driving the car at twice the speed of auto oneday He was driven car for 10 min. And car is failed. He left The car and took auto to goto the office .He spent 30 min. In the auto. What will be the time take by car to go office? (A) 25 (b) 30 (c) 35 (d) none

13 Answers   Deshaw,


No. of animals is 11 more than the no. of birds. If the no. of birds were the no. of animals and no. of animals were the no. of birds( ie., interchanging no.s of animals and birds.), the total no. of legs get reduced by one fifth (1/5). How many no. of birds and animals were there?

0 Answers   Infosys,


can any one help me in knowing the paper pattern of karnataka bank exam? i hav my exam on 4th of jan.i want to know what all they r goin to ask like english, aptitude,general knowledge?please help me

0 Answers   Karnataka Bank,


In 1978, a kg of paper was sold at Rs25/-. I f the paper rate increases at 1.5% more than inflation rate which is of 6.5% a year , then what wil be the cost of a kg of paper after 2 years? a)29.12 (b) 29.72 (c) 30.12 (d) 32.65 (e) none of these

6 Answers   IBM,






The area of the quadrilateral is 36 What is a*b

0 Answers   Changepond,


what was the eariler name of belarus

1 Answers   Vodafone,


A ship started from port and moving with 'I' miles/hour and other ship started From L and moving with 'H' miles/hour . At the place where these two ships will meet?

2 Answers   Accenture, TCS,


can u make 1000 by using eight 5's.

11 Answers  


There's a camel living in a desert. There is a market 1000 miles away. The camel has 3000 dates for sale. It has to take the date to the market. But for that hte camel eats one date per mile. How many dates the camel can trade?

0 Answers   Accenture,


What is the optimal size of a project team, above which additional members do not contribute productivity equivalent to the percentage increase in the staff size?

3 Answers   Affle, Google,


Find the next letter in the series O,T,T,F,F,S,S--

0 Answers   DSQ Software,


Categories