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
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
How is a pointer variable declared?
Do variables need to be initialized?
What is queue in c?
Why isn't it being handled properly?
Why static variable is used in c?
How pointers are declared?
What are the ways to a null pointer can use in c programming language?
What is the process of writing the null pointer?
What is the difference between pure virtual function and virtual function?
How do you define CONSTANT in C?
Is null equal to 0 in sql?
What are the scope of static variables?
How do you print an address?
What is difference between function overloading and operator overloading?