English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

int x;
int y;
int *p=&x;
int *q=&y;
x=35;
y=46;
p=q;
*p=78;
Cout << x << " " << y << endl;
Cout << *p << " " << *p << endl;

2007-02-05 15:55:35 · 2 answers · asked by ammochck21 2 in Computers & Internet Programming & Design

2 answers

I'm not going to compile it....

35 46
78 78

2007-02-05 16:59:38 · answer #1 · answered by D 4 · 0 1

Why not put the above code into a text file, compile it and run it?

C++ compilers can be had for free easily enough.

Compiling and running may be against "the rules" for this assignment, but I'm sure that would be far less "against" than posting to Yahoo! and asking for the answer....

2007-02-06 00:15:40 · answer #2 · answered by RGB_Mars 3 · 0 0

fedest.com, questions and answers