Why n++ execute faster than n+1 ?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the sizeof () operator?
What is difference between array and structure in c?
Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); }
How do you construct an increment statement or decrement statement in C?
What is the use of typedef in structure in c?
What is a file descriptor in c?
Why is python slower than c?
What is volatile
What does nil mean in c?
what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }
main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); } what is the output?
What is the difference between new and malloc functions?