- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies

Search Interview Questions

Question: Between n+1 and n++ which executes faster or both take the same time to execute?

Answer: n++ will be faster because in this case there will be only one variable in memory whereas in n+1, there will be two.

Category C Interview Questions & Answers - Exam Mode / Learning Mode
Rating (0.2) By 7499 users
Added on 5/19/2013
Views 54623
Rate it!
Question: Between n+1 and n++ which executes faster or both take the same time to execute?

n++ will be faster because in this case there will be only one variable in memory whereas in n+1, there will be two. Source:

Answered by: Himanshu Sharma | Date: 5/20/2008 | Contact Himanshu Sharma Contact Himanshu Sharma

n++ is faster than n+1
b'cos n++ is a macro Source:

Answered by: shynoj | Date: 7/3/2008 | Contact shynoj Contact shynoj

n++ is faster because it has a first priority comparing + operator Source:

Answered by: rathna | Date: 8/30/2008 | Contact rathna Contact rathna

n++ executes faster than n+1 because,n++ requires only single instruction i.e.,INR but whereas n+1 requires two instructions to execute Source:

Answered by: aruna | Date: 6/4/2009 | Contact aruna Contact aruna

If you have the better answer, then send it to us. We will display your answer after the approval

Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.

Post your answer here

Inform me about updated answers to this question.
Related Questions
View Answer
Range of int in is -32768 to 32767 and it occupy 2 byte in memory and char take 1 byte take single char but in java int is 4 byte take value-2,147,483648 to 647 and char occupy 2 byte and also take single variable why not more?`

View Answer
How to connect a database (MS Access) to Borland C?
Please give me step by step coding.
View Answer
To which numbering system can the binary number 1101100100111100 be easily converted to?
View Answer
What are bit fields? What is the use of bit fields in a structure declaration?
View Answer
What are enumerations?
View Answer
Write down the equivalent pointer expression for reffering the same element a[i][j][k][l]?
View Answer
What is the use of typedef?
View Answer
Which mistakes are called as token error?
View Answer
What is the function of % using in formatted string.
View Answer
How to print the names of employees or students in alphabetical order using C programming?
View Answer
How should i rate on the basis of the basis of the scenario the insertion sort , bubble sort , Quick Sort?
View Answer
Can we print values from 1 to 100 without using for,while,do-while,if etc.?answer should be logical.
View Answer
How to write a program to print its own source code?
View Answer
What are the advantages of pointers,give me programs containing variables and pointer variables?
View Answer
I want source code of series of prime numbers.
View Answer
There is any methodology in which we can print a string in c without using semicolon(;)
suggest me if there is ?
View Answer
What is the difference between the following statements?
int a[4]={1,2,3,4};
int a[]={1,2,3,4);
View Answer
How can we get direct printout of a c file without giving print command from bin or tc?eg i want to get the printout of a program directly after execution from the c window itself.
View Answer
Write a C program that will convert Simple Sentence to Complex/Compound Sentence.
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

View All C Interview Questions & Answers - Exam Mode / Learning Mode

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 1.078125 Seconds