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 |
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Can a binary search tree be used as an index? If yes, how? Explain
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is a newline escape sequence?
How can you increase the size of a dynamically allocated array?
What is the return type of sizeof?
write a program of bubble sort using pointer?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?
is it possible to create your own header files?
How can you find the exact size of a data type in c?
How can I allocate arrays or structures bigger than 64K?