difference between i++* and *++i

Answer Posted / rukmanee

In case of i++, it'll first assign the value of i and then
increment it's value by one. But in case of ++i, it 'll
first increment the value of i by 1 and then assign the new
value of i.This is the difference between i++ and ++i.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1722


How can I access an I o board directly?

620


Explain c preprocessor?

678


How can I find out how much free space is available on disk?

622


What is the difference between far and near in c?

599






What is the condition that is applied with ?: Operator?

654


How to declare pointer variables?

681


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2029


Describe the steps to insert data into a singly linked list.

616


What is the use of getch ()?

629


What is meant by keywords in c?

610


What are global variables and explain how do you declare them?

567


What is s in c?

607


the question is that what you have been doing all these periods (one year gap)

1614


What are nested functions in c?

558