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

List the difference between a While & Do While loops?

627


largest Of three Number using without if condition?

993


Differentiate between the = symbol and == symbol?

700


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2296


What is the difference between malloc() and calloc()?

609






What is d scanf?

580


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1594


How can type-insensitive macros be created?

689


How do I round numbers?

589


Linked lists -- can you tell me how to check whether a linked list is circular?

633


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

622


What is the general form of function in c?

605


what is reason of your company position's in india no. 1.

1770


What does struct node * mean?

588


How to delete a node from linked list w/o using collectons?

2081