C (itan Re: Ligo asxeto ...)

Giannis Papaioannou jhn2 at gaia.geo.auth.gr
Sat Sep 25 00:40:37 EEST 1999



On Fri, 24 Sep 1999, N.P. wrote:

> 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.

an kaneis dhlwsh:
int *number;
int *number2;

tote an isxioun oi times:
number = 234354
*number = 123
number2 = 234356
*number2 = 453

to apotelesma einai:
(*number)++ = 124
*number++ = 453 = *number2 

genika an enas pointer deixnei se 8esh mnhmhs integer
poiner++ shmainei oti au3aneis thn 8esh mnhmhs pou deixei o pointer
kata mia 8esh, kai se periptwsh integer auto shmainei 2 bytes



--
====================================================================
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