d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Questions On Pointers C
Add Reply New Topic New Poll
Member
Posts: 24,101
Joined: Nov 8 2007
Gold: 5,561.70
Mar 6 2013 10:14pm
Can someone explain how to get to these answers? I'm confused on what some of the expressions are trying to evaluate.

Thanks, answers are to the right of each sub-problem.

Can someone explain how they got to the answers? Like their logical process?



This post was edited by lopelurag on Mar 6 2013 10:15pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Mar 6 2013 10:18pm
Quote (lopelurag @ Mar 6 2013 11:14pm)
Can someone explain how to get to these answers? I'm confused on what some of the expressions are trying to evaluate.

Thanks, answers are to the right of each sub-problem.

Can someone explain how they got to the answers? Like their logical process?

http://i.imgur.com/SqYcuN0.png


you can start by running the code and running them in pieces.

eg: instead of *(p-2)-b, run:

p-2
*(p-2)
*(p-2)-b

and see the logic yourself
Member
Posts: 24,101
Joined: Nov 8 2007
Gold: 5,561.70
Mar 6 2013 10:35pm
Quote (carteblanche @ Mar 7 2013 12:18am)
you can start by running the code and running them in pieces.

eg: instead of *(p-2)-b, run:

p-2
*(p-2)
*(p-2)-b

and see the logic yourself


Yeah that's actually probably better, thanks. I'll post if I still have any questions thanks

This post was edited by lopelurag on Mar 6 2013 10:36pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll