From: John Love-Jensen <eljay@adobe.com>
To: Robert Miesen <bobby_miesen@yahoo.com>,
MSX to GCC <gcc-help@gcc.gnu.org>
Subject: Re: C++: Is there a Value used to designate the end-of-an-array for non-char arrays?
Date: Mon, 23 Jan 2006 12:11:00 -0000 [thread overview]
Message-ID: <BFFA23F0.85A9%eljay@adobe.com> (raw)
In-Reply-To: <43D48F0D.60306@yahoo.com>
Hi Robert,
> I am curious if there is any sort of value used to designate the end of
> an array for arrays that are not of type char.
Nothing in particular is used by convention.
You can create your own convention, if you so choose and it works for the
numbers you are working with. For example, if I had an array of floats that
were between -1.0f and +1.0f, I could choose some arbitrary number, say
2.0f, to represent end-of-array.
Alternatively, I could associate an array length size_t and not have an
explicit end-of-array value.
HTH,
--Eljay
next prev parent reply other threads:[~2006-01-23 12:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-23 8:08 Robert Miesen
2006-01-23 12:11 ` John Love-Jensen [this message]
2006-01-23 14:08 ` Perry Smith
2006-02-07 20:40 ` dch
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=BFFA23F0.85A9%eljay@adobe.com \
--to=eljay@adobe.com \
--cc=bobby_miesen@yahoo.com \
--cc=gcc-help@gcc.gnu.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).