Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #20050

Re: The question regarding type of pointers

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Sun, 29 Apr 2012 08:34:56 -0500
Message-ID <4F9D4380.5FF5@mindspring.com> (permalink)
Date Sun, 29 Apr 2012 09:34:56 -0400
From pete <pfiland@mindspring.com>
Reply-To pfiland@mindspring.com
Organization PF
X-Mailer Mozilla 3.04Gold (WinNT; I)
MIME-Version 1.0
Newsgroups comp.lang.c
Subject Re: The question regarding type of pointers
References <a5d5b150-de6c-4bdf-bc53-5dd21eddc81c@a8g2000pbe.googlegroups.com> <39cgp71somr8bjmg3rufk6ins863nhdcco@4ax.com> <96bb54c9-5ea3-49ff-851b-56dfbb8eac54@qg3g2000pbc.googlegroups.com> <4F9C3E13.41E3@mindspring.com> <ce807310-bc61-4674-8657-05535111bacd@k7g2000pbo.googlegroups.com> <jnj952$krk$1@dont-email.me>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Lines 34
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 4.154.222.63
X-Trace sv3-WVlJwlBTusObIcSpIGTlCCZzDNmrtdjffSPuQJsFwnXskmTVlMx1Nf5ydpyuF2ActZvP71UtKVH0A69!t8yXo7Pob5MkSnWP23by7pA5iXyyrWsgINGB9BUImirj1ympPvQcXEBS5wUrsyp8UvBOtcqlj63W!EvHTGgamUw==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2524
X-Received-Bytes 2704
Xref csiph.com comp.lang.c:20050

Show key headers only | View raw


James Kuyper wrote:
> 
> On 04/28/2012 11:27 PM, somenath wrote:
> ...
> > I did not understand this. According to my understanding C does not
> > have array value instead Instead, the "value" of the array is a
> > pointer to the first element of that array.
> 
> C has expressions that refer to arrays. These expressions do not have a
> value; the expression (NOT it's non-existent value) gets automatically
> converted into a pointer to the first element of that array in many
> contexts. However, an array expression does not itself have any value,
> and in several important contexts no such conversion occurs.

From this:
    n1570
    6.7.9 Initialization
    Semantics
    8 An initializer specifies the initial value stored in an object.
I would construe that the entire contents of an array,
is the value of an array.

The result of an implicit conversion 
of an expression of array type to a pointer,
does not depend on the value of the array,
but only depends on the address of the array.

C does not have an operator
which can assign the value of an array to another array
and C does not have an operator
which can compare the value of an array to another array.

-- 
pete

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-24 21:05 -0700
  Re: The question regarding type of pointers Kaz Kylheku <kaz@kylheku.com> - 2012-04-25 04:51 +0000
  Re: The question regarding type of pointers "Heinrich Wolf" <invalid@invalid.invalid> - 2012-04-25 07:15 +0200
    Re: The question regarding type of pointers Philip Lantz <prl@canterey.us> - 2012-04-25 00:46 -0700
      Re: The question regarding type of pointers "Heinrich Wolf" <invalid@invalid.invalid> - 2012-04-25 09:52 +0200
  Re: The question regarding type of pointers Philip Lantz <prl@canterey.us> - 2012-04-25 01:09 -0700
  Re: The question regarding type of pointers Barry Schwarz <schwarzb@dqel.com> - 2012-04-25 11:22 -0700
    Re: The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-27 23:05 -0700
      Re: The question regarding type of pointers pete <pfiland@mindspring.com> - 2012-04-28 14:59 -0400
        Re: The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-28 20:27 -0700
          Re: The question regarding type of pointers James Kuyper <jameskuyper@verizon.net> - 2012-04-29 07:37 -0400
            Re: The question regarding type of pointers pete <pfiland@mindspring.com> - 2012-04-29 09:34 -0400
              Re: The question regarding type of pointers James Kuyper <jameskuyper@verizon.net> - 2012-04-29 11:54 -0400
          Re: The question regarding type of pointers pete <pfiland@mindspring.com> - 2012-04-29 09:24 -0400
            Re: The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-29 07:38 -0700
              Re: The question regarding type of pointers James Kuyper <jameskuyper@verizon.net> - 2012-04-29 12:01 -0400
                Re: The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-29 09:29 -0700
    Re: The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-27 22:22 -0700
      Re: The question regarding type of pointers Barry Schwarz <schwarzb@dqel.com> - 2012-04-28 20:14 -0700
        Re: The question regarding type of pointers somenath <somenathpal@gmail.com> - 2012-04-28 22:17 -0700
          Re: The question regarding type of pointers James Kuyper <jameskuyper@verizon.net> - 2012-04-29 07:32 -0400

csiph-web