linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pointers to int
@ 2005-10-28 13:19 Fabio Andres Miranda
  2005-10-28 16:05 ` Christoph Bussenius
  2005-10-29 15:44 ` Glynn Clements
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Andres Miranda @ 2005-10-28 13:19 UTC (permalink / raw)
  To: linux-c-programming

Hello,

Can anyone explain to the list how this pointers to int work:
    int *p;
    p = (int *)(array);
    for (i = 0; i < arraysize - 1; i += 4)
        *p++ = j - 8;
    *p = 0x0;

P is defined as a pointer to a int. Then, it points to (the beginning ? 
) a char array.
What is the result of perform the instruction: *p++; ?
First, what is it? It adds 1 to what?

Thanks for a detailed explanation,

fabolo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-29 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 13:19 Pointers to int Fabio Andres Miranda
2005-10-28 16:05 ` Christoph Bussenius
2005-10-28 16:09   ` Christoph Bussenius
2005-10-29 15:44 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).