Write a code to determine the total number of stops an elevator would take to serve N number of people.


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

Post New Answer

More C Interview Questions

what is foreign key in c language?

1 Answers   ADP,


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

0 Answers  


There seem to be a few missing operators ..

0 Answers  


writw a program to insert an element in the begning of a doubly linked list

1 Answers  


How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 Answers  






what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year

7 Answers   TCS,


what is the basis for selection of arrays or pointers as data structure in a program

0 Answers   TCS,


What is difference between structure and union in c?

0 Answers  


code for quick sort?

0 Answers  


Why is c called c?

0 Answers  


whenever a question is posted in a particular category in allinterview.com, Is there any facility to receive an indication mail. For eg: I need to receive an indication email, whenever a question is posted under the category “C Langauage”.

1 Answers  


Explain what is wrong with this program statement?

0 Answers  


Categories