Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: strcpy ques...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 17 Topic 26073 of 26972
Post > Topic >>

Re: strcpy question

by Keith Thompson <kst-u@[EMAIL PROTECTED] > May 18, 2008 at 09:39 PM

David Thompson <dave.thompson2@[EMAIL PROTECTED]
> writes:
> On Mon, 5 May 2008 11:39:39 -0700 (PDT), Tomás Ó hÉilidhe
> <toe@[EMAIL PROTECTED]
> wrote:
> <snip>
>> then when you write the name of [an] array on its own, what you have is
>> a pointer to the first element of the array, e.g.: <snip>
>> (There are three special cases in which this isn't so:
>>     1) When sizeof is applied to the array
>>     2) When the addressof operator is applied to the array
>>     3) ...I can't actually think of it off-hand, but I'm sure I'd know
>> it if I was presented with it.)
>> 
> Standard C has only (those) two explicit. C++ adds typeid, and initing
> a reference (which includes passing to a reference parameter).

C has three cases, only two of which can apply to array names.  The
third case (in which an expression of array type is not implicitly
converted to a pointer to the array's first element) is a string
literal used in an initializer to initialize an array object.

[snip]

-- 
Keith Thompson (The_Other_Keith) kst-u@[EMAIL PROTECTED]
 
<http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
 




 17 Posts in Topic:
strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 11:19:59 
Re: strcpy question
Eric Sosman <Eric.Sosm  2008-05-05 14:39:35 
Re: strcpy question
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-05 11:39:39 
Re: strcpy question
David Thompson <dave.t  2008-05-19 03:59:51 
Re: strcpy question
Keith Thompson <kst-u@  2008-05-18 21:39:15 
Re: strcpy question
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-05 11:41:33 
Re: strcpy question
"Default User"   2008-05-05 18:47:03 
Re: strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 13:08:56 
Re: strcpy question
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-05 14:34:55 
Re: strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 16:04:37 
Re: strcpy question
"Default User"   2008-05-05 23:16:18 
Re: strcpy question
Keith Thompson <kst-u@  2008-05-05 16:23:24 
Re: strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 16:07:12 
Re: strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 16:52:00 
Re: strcpy question
Keith Thompson <kst-u@  2008-05-05 18:00:22 
Re: strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 16:52:33 
Re: strcpy question
mdh <mdeh@[EMAIL PROTE  2008-05-05 18:17:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:42:13 CDT 2008.