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 |
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What are header files? What are their uses?
What do you mean by scope of a variable in c?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
what type of questions arrive in interview over c programming?
Is it possible to run using programming C for Java Application?
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
difference between string and array?
Can we use any name in place of argv and argc as command line arguments?
what are the stages of compilation
please give me some tips for the placement in the TCS.
what is the output of below int n=10; (n++)++; printf("%d",n);