what is the difference between i++ and ++i?

Answer Posted / vinay

if they are used stand alone they are same ....

both increment the value of operand by 1

if they used in an expression then they will perform same
as mentioned in above answers...

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the founder of c language?

671


Does * p ++ increment p or what it points to?

602


How many levels of pointers have?

585


Which driver is a pure java driver

983


What are type modifiers in c?

614






Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1856


How can I avoid the abort, retry, fail messages?

647


How to explain the final year project as a fresher please answer with sample project

460


Write a program to print fibonacci series without using recursion?

599


What is %g in c?

608


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

689


What is c language used for?

551


Can you pass an entire structure to functions?

686


Stimulate calculator using Switch-case-default statement for two numbers

2438


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

719