C (itan Re: Ligo asxeto ...)

Giorgos Keramidas keramida at hades.hell.gr
Sat Sep 25 02:28:07 EEST 1999


On Sat, Sep 25, 1999 at 12:40:37AM +0300, Giannis Papaioannou wrote:
| 
| 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

Pzzzzzttt ! xasate... next please...

Ama exeis dnlwsei: int *p;
Tote to p++ einai isodunamo me: p += sizeof(int);

An bebaia sizeof(int) == 2 kata tuxn, den exases (akoma), alla genika min
basizesai sto gegonos pos to megethos tou "int" einai 2 bytes.

-- 
Giorgos Keramidas, <keramida at ceid.upatras.gr>
Public PGP key at finger://keramida@diogenis.ceid.upatras.gr/
"Today is not yesterday's tomorrow, but tomorrow's yesterday."
--
====================================================================
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