Talk About Network



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 > Pointer initial...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 1096 of 1098
Post > Topic >>

Pointer initialization and usage.

by Vickynathan <ragunath73@[EMAIL PROTECTED] > May 8, 2008 at 02:20 AM

The following code snippet works. I wonder how ? ( this is a code for
microcontroller )

void main (void){

unsigned char xdata * data pwrite;
unsigned char code *  data pread;
unsigned char test_array [16];
unsigned char temp;
.....
.....
.....

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

......
......

for ( i=0; i< sizeof( my_array); i++ ){
......
temp = pread[i];                         // How is this possible
without an indirection operator ?
......
pwrite[i] = temp;                        // Again no indirection
operator ??
......
}

Thanks

Vickynathan
-- 
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.




 5 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.
=?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 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon May 12 19:35:32 CDT 2008.