




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





downAndUp(
int
takeMeHigher,
int
putMeDown){
takeMeHigher
+=
1;
putMeDown
-=
1;
}
x=3,
y^
int
*px
&x;
int
*py
&y;
printf(
"%d
%d\n"
,^ x,
y);
*px
printf(
"%d
%d\n"
,^ x,
y);
x^
is^
changed
px^
=^ py; printf(
"%d
%d\n"
,^ x,
y);
x^
not
changed
*px
printf(
"%d
%d\n"
,^ x,
y);
y^
is^
changed
int
*p; *p^
=^ 5;
/*^
oops!
Program
probably
dies!
*/
^ int
x^
=^ 3; int
*p; p^ =
x^
/*^
oops,
RHS
should
be
&x
*/
*p +=1;
/*^
is^
not
the
same
as
…^
*/
^ *p++;