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 does volatile do?
What is the difference between formatted&unformatted i/o functions?
Why flag is used in c?
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
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.
how to execute a program using if else condition and the output should enter number and the number is odd only...
what is the difference between procedure oriented and object oriented progaming language
what is disadvantage of pointer in C
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Can you apply link and association interchangeably?