two progs are given. one starts counting frm 0 to MAX and
the other stars frm MAX to 0. which one executes fast.
Answer Posted / 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 |
Post New Answer View All Answers
Is this program statement valid? INT = 10.50;
What is the use of #include in c?
What are the advantages of union?
c program to compute AREA under integral
Explain union. What are its advantages?
Do you know pointer in c?
Why n++ execute faster than n+1 ?
What is use of pointer?
Why do we use int main instead of void main in c?
Is c object oriented?
What is a program?
How do you determine the length of a string value that was stored in a variable?
how do you execute a c program in unix.
Is struct oop?
What is the use of getchar functions?