C (itan Re: Ligo asxeto ...)

Yiannis Belias orion at hellug.gr
Fri Sep 24 23:12:13 EEST 1999


"N.P." wrote:
[xrats]
> Miso lepto giati mperdeutika. Esto oti o *number exei thn timh 1756, an
> kaneis (*number)++ kai esto oti sizeof(int)=2  sto mhxanhma sou, 8a paei
> 1758? *(Etsi ksero)
> thanks in advance
> N.P.

To (*number)++ kanei to idio me to *number+=1 h (*number)+=1, ay3anei ton 
integer pou koitaei o pointer kata 1, dhl. apo 1756 se 1757.
To *(number++) dhl. number++, ay3anei th diey8ynsh pou "koitaei"
o pointer kata tosa byte osa to mege8os sizeof(number), p.x.:

                     RAM
1.) pointer-------->[1756]  //(*pointer)++

2.) pointer-------->[1757]  //pointer++

3.) pointer-----\   [1756]
                |-->[mia tyxaia timh]    

Ama se mperdepsa akoma perissotero sorry :))
Yiannis

-- 
Yiannis Belias     <orion at aias.net>                         ,   *
Athens University  <orion at linuxfreak.com>
Physics Department                                       `
                                                   `   .
LINUX: IN A WORLD WITHOUT FENCES WHO NEEDS GATES? 
---Nothing lasts forever but the night sky---    `   .

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list