Why n++ execute faster than n+1 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better between malloc and calloc?

664


What are the applications of c language?

619


Why array is used in c?

549


What are conditional operators in C?

619


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1756






What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

897


Why is sizeof () an operator and not a function?

572


What is the difference between char array and char pointer?

525


Is fortran still used today?

597


Is multithreading possible in c?

560


Write a code of a general series where the next element is the sum of last k terms.

586


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1477


Explain the use of #pragma exit?

690


Explain the difference between call by value and call by reference in c language?

637


Is calloc better than malloc?

570