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 Moderated > Re: automatic s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 893 of 1183
Post > Topic >>

Re: automatic struct-variable question

by mmcconnell17704@[EMAIL PROTECTED] Feb 16, 2007 at 03:47 PM

Here's the answer.  A bigdatum doesn't contain a pointer-to-char, as
if I had written
  char *id;
in the struct definition.  Rather, it contains a complete array of 200
chars.  In the original version of indexToId, x contains a copy of
those 200 chars.  So yes,
  char *result = x.id;
makes result point to the copy.
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 2 Posts in Topic:
[comp.lang.c.moderated] automatic struct-variable question
mmcconnell17704@[EMAIL PR  2007-02-13 12:22:33 
Re: automatic struct-variable question
mmcconnell17704@[EMAIL PR  2007-02-16 15:47:21 

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 Nov 21 13:14:15 CST 2008.