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

Answer Posted / moonlight

++i is pre increment and i++ is post increment. It is useful
in any codition.in pre increment it increases value of i
first then check it's value and in post increment it first
check it's value then increment.

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is spark map function?

581


Is there a built-in function in C that can be used for sorting data?

744


How many bytes are occupied by near, far and huge pointers (dos)?

674


What is a class c rental property?

617


Can one function call another?

628






to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1573


What is else if ladder?

610


What do the functions atoi(), itoa() and gcvt() do?

726


What are pragmas and what are they good for?

577


Explain what are the different data types in c?

761


What is call by reference in functions?

569


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1076


What are the disadvantages of external storage class?

592


What does malloc () calloc () realloc () free () do?

560


write a proram to reverse the string using switch case?

2469