From: ework0 <ework0@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: pointers
Date: Sun, 30 Oct 2005 02:11:03 -0600 [thread overview]
Message-ID: <43648017.7040700@gmail.com> (raw)
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
next reply other threads:[~2005-10-30 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-30 8:11 ework0 [this message]
2005-10-31 13:07 ` pointers HIToC
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43648017.7040700@gmail.com \
--to=ework0@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.