Why n++ execute faster than n+1 ?

Answers were Sorted based on User's Feedback



Why n++ execute faster than n+1 ?..

Answer / hrpynux@gmail.com

The expression n++ requires a single machine instruction such as INR to carry out the increment operation whereas, n+1 requires more instructions to carry out this operation.

Is This Answer Correct ?    1 Yes 0 No

Why n++ execute faster than n+1 ?..

Answer / hrpynux@gmail.com

The expression n++ requires a single machine instruction such as INR to carry out the increment operation whereas, n+1 requires more instructions to carry out this operation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent

1 Answers  


How many types of linked lists what are they? How many types of data structures?

18 Answers   BSNL, Pivotal Software,


Explain following declaration int *P(void); and int (*p)(char *a);

3 Answers  


Why static variable is used in c?

0 Answers  


What does char * * argv mean in c?

0 Answers  






#define f(x) main() { printf("\n%d",f(2+2)); }

5 Answers  


to find the closest pair

0 Answers   Infosys,


what is the most appropriate way to write a multi-statement macro?

1 Answers  


What is a class c rental property?

0 Answers  


What is the purpose of Scanf Print, getchar, putchar, function?

3 Answers  


write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"

2 Answers  


Write a program to implement queue.

0 Answers   Aricent,


Categories