linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pointers
@ 2005-10-30  8:11 ework0
  2005-10-31 13:07 ` pointers HIToC
  0 siblings, 1 reply; 2+ messages in thread
From: ework0 @ 2005-10-30  8:11 UTC (permalink / raw)
  To: linux-c-programming

Hello,

I would like to know what are the advantages of use pointers to 
insert/modify values in an array of characters for example.

char myword[2];
*myword = 'h';
*(myword + 1)='i';

why would i use this ( the intruction: *(myword + offset))?
what is the advantages of use this manipulation of array with these 
pointers ?
In the last line, do I increment the address that contains what s points 
to right ??
Why I increment it in '1' instead of a memory word concept?

Thanks

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

end of thread, other threads:[~2005-10-31 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-30  8:11 pointers ework0
2005-10-31 13:07 ` pointers HIToC

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