Re: [Dev-C++] problem with using reference
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From:
<ri...@te...> - 2004-04-25 10:16:56
|
faramarz yari escribió:
>
> i add irx with 3 and it should be 13 now,
> but as u can see it's 15
> i'm very eager to hear from u and knowing the answer that wath the
> problem is
> thank u in advance
It´s because you previously added 2 in the "pointer function" so x value
is 12 when you call fr()
That explain why you get 15 : 12 + 3 ;)
--
---------------------------------------------------
Ricardo Amores Hernández
ICQ: 19463735
MSN: zheo_ (at) hotmail (dot) es
---------------------------------------------------
--
---------------------------------------------------
Ricardo Amores Hernández
ICQ: 19463735
MSN: zheo_ (at) hotmail (dot) es
---------------------------------------------------
|