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

int far *near * p; means

3137


When was c language developed?

712


Explain what is the difference between functions abs() and fabs()?

638


Why main is not a keyword in c?

660


What does it mean when the linker says that _end is undefined?

654






What is unsigned int in c?

570


Write a program to check whether a number is prime or not using c?

590


What is #include cctype?

592


Explain what are run-time errors?

619


List out few of the applications that make use of Multilinked Structures?

1331


how do you execute a c program in unix.

649


Explain main function in c?

640


Where can I get an ansi-compatible lint?

656


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

628


How can I use a preprocessorif expression to ?

615