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 how do you determine a file’s attributes?

1047


Explain what is the concatenation operator?

1168


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5952


Can stdout be forced to print somewhere other than the screen?

1047


Why does this code crash?

1093


In C language what is a 'dangling pointer'?

1143


Differentiate between static and dynamic modeling.

1115


what is the height of tree if leaf node is at level 3. please explain

2150


What are variables c?

1053


Explain what are global variables and explain how do you declare them?

1166


Explain how can I manipulate strings of multibyte characters?

1206


Differentiate between Macro and ordinary definition.

1379


What is meant by errors and debugging?

1103


What is the difference between c and python?

1169


Why do we use int main instead of void main in c?

1146