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
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 |
Answer / nagel
what you have given for this is wrong there is some formula
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
Differentiate between Macro and ordinary definition.
How does placing some code lines between the comment symbol help in debugging the code?
What does printf does?
Can you return null in c?
when user give a number it multiply with 9 without useing '+' and '*' oprator
what will be the output of this program main() { int i=1; while (i<=10); { i++; } }
what does ‘#include’ mean?
What is the auto keyword good for?
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?
SRUCTURE PROGRAMMING
Explain the priority queues?