Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output

5 Answers   CitiGroup,


What is integer constants?

0 Answers  


what is the difference between 123 and 0123 in c?

0 Answers  


what is printf

5 Answers   MVSR, Satyam,


Can you please explain the scope of static variables?

0 Answers  


9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?

4 Answers   L&T,


Why c language?

0 Answers  


1,1,5,17,61,217,?,?.

3 Answers   Apple,


HOW TO SWAP TWO NOS IN ONE STEP?

16 Answers   Satyam,


What is queue in c?

0 Answers  


What is the meaning of typedef struct in c?

0 Answers  


Categories