Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difference between i++* and *++i

Answer Posted / yathish m yadav

*++i
assuming i is declared as pointer
i will be first incremented to point to next location to
which it is pointing. then, the content of location to
which i is newly pointing will be assigned if any variable
is used like: a=*++i;
here since it is not assigned to any variable it will be
dicard.

i++*
if the statement is int a=i++*;
then i is incremented to point to next location of its type
then the content of that location is being copied to a
using *.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain c preprocessor?

1155


How can I ensure that integer arithmetic doesnt overflow?

1253


How do you use a 'Local Block'?

1224


Explain what is meant by high-order and low-order bytes?

1089


What is p in text message?

1037


Write a program to generate the Fibinocci Series

1299


What is function definition in c?

1116


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1308


What are global variables and how do you declare them?

1166


Explain how can I right-justify a string?

1091


What is #define?

1189


Write a program of advanced Fibonacci series.

1203


What Is The Difference Between Null And Void Pointer?

1329


What is a rvalue?

1259


Is it possible to initialize a variable at the time it was declared?

1254