public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mateusz Loskot <mateusz@loskot.net>
To: Rohit Arul Raj <rohitarulraj@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: odd behavior with Character Arrays
Date: Fri, 08 Aug 2008 07:07:00 -0000	[thread overview]
Message-ID: <489BEDB7.2020905@loskot.net> (raw)
In-Reply-To: <c356fd4e0808072312u66716d8bp696b9e95f4ff3ba1@mail.gmail.com>

Rohit Arul Raj wrote:
> 2. Can i get more details as to why if the size of the array is not
> provided the compiler does not insert an string terminator at the end
> of the array.

How could that be?
It is an array but not a string literal, so compiler does not append \0 
or any other extra elements to it.

Best regards
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

  reply	other threads:[~2008-08-08  6:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08  6:55 Rohit Arul Raj
2008-08-08  7:07 ` Mateusz Loskot [this message]
2008-08-08  9:38   ` Rohit Arul Raj
2008-08-08 12:10     ` Jędrzej Dudkiewicz
2008-08-08 13:00     ` Mateusz Loskot
2008-08-08 13:40       ` Mateusz Loskot
2008-08-08 15:01     ` John Fine
2008-08-09  1:09       ` Is this code wrong? John Fine
2008-08-09  2:44         ` Eljay Love-Jensen
2008-08-09 11:23           ` corey taylor
2008-08-09 14:57             ` John Fine
2008-08-08 15:38     ` odd behavior with Character Arrays Bob Plantz

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=489BEDB7.2020905@loskot.net \
    --to=mateusz@loskot.net \
    --cc=gcc-help@gcc.gnu.org \
    --cc=rohitarulraj@gmail.com \
    /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).