two progs are given. one starts counting frm 0 to MAX and
the other stars frm MAX to 0. which one executes fast.

Answers were Sorted based on User's Feedback



two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one e..

Answer / pritam

this may very well depend upon the architecture of the
underlying hardware.
On most arch though the second one max to 0 will run faster
because almost any sane compiler will optimize the code by
using "not zero" testing machine instruction which is
provided on almost all platforms.

Is This Answer Correct ?    5 Yes 0 No

two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one e..

Answer / sriharsha karanth

Both Will Execute Fast

Is This Answer Correct ?    1 Yes 0 No

two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one e..

Answer / nagel

what you have given for this is wrong there is some formula

Is This Answer Correct ?    0 Yes 0 No

two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one e..

Answer / venkatesh

depends on program

Is This Answer Correct ?    0 Yes 0 No

two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one e..

Answer / vignesh1988i

as for as i think , counting of MAX to 0 only will be done
fast..... take an real time example : when we climb up any
thing (eg : steps) it will take time for us to reach the
place which is up , wheares when we come down using steps we
feel easier and come quickly . like this if we see the
above can be the answer..................


thank u

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Differentiate between Macro and ordinary definition.

0 Answers   Motorola,


How does placing some code lines between the comment symbol help in debugging the code?

0 Answers  


What does printf does?

0 Answers  


Can you return null in c?

0 Answers  


when user give a number it multiply with 9 without useing '+' and '*' oprator

4 Answers  






what will be the output of this program main() { int i=1; while (i<=10); { i++; } }

11 Answers  


what does ‘#include’ mean?

1 Answers   TCS,


What is the auto keyword good for?

0 Answers  


write aprogram for There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

1 Answers   iGate, Shashi, Source Bits, Subex,


What is the use of sizeof?

0 Answers  


SRUCTURE PROGRAMMING

3 Answers   CTS, Wipro,


Explain the priority queues?

0 Answers  


Categories