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: Pointer ini...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 8 Topic 1096 of 1133
Post > Topic >>

Re: Pointer initialization and usage.

by =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= <HBBroeker@[EMAIL PROTECTED] > May 9, 2008 at 05:33 PM

Vickynathan wrote:
> The following code snippet works. I wonder how ?

It works by its author having read the applicable do***ents (a C 
textbook, and the particular compiler's do***entation) and learning from 
them.  I suggest you try that, too.

> pwrite = (unsigned char xdata *) Scratch_Flash_Addr ;    // I have
> never seen such an initialization ??

There's nothing magical about it.  See the C textbook on what (unsigned 
char *) would mean, and the compiler do***entation on the meaning of 
'xdata'.  See the rest of the source code to understand where 
Scratch_Flash_Addr might be coming from.

> temp = pread[i];                         // How is this possible
> without an indirection operator ?

By reading the C textbook.
-- 
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.
 




 8 Posts in Topic:
Pointer initialization and usage.
Vickynathan <ragunath7  2008-05-08 02:20:26 
Re: Pointer initialization and usage.
Francis Glassborow <fr  2008-05-09 17:33:03 
Re: Pointer initialization and usage.
Kenneth Brody <kenbrod  2008-05-09 17:33:05 
Re: Pointer initialization and usage.
Vickynathan <ragunath7  2008-05-13 01:06:11 
Re: Pointer initialization and usage.
=?ISO-8859-1?Q?Hans-Bernh  2008-05-09 17:33:09 
Re: Pointer initialization and usage.
Jack Klein <jackklein@  2008-05-09 17:33:14 
Re: Pointer initialization and usage.
Vickynathan <ragunath7  2008-05-13 01:06:17 
Re: Pointer initialization and usage.
Francis Glassborow <fr  2008-05-13 01:06:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Jul 24 2:18:33 CDT 2008.