We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm having difficulty accessing a value from an array. Here's an example of what the code is doing:
unsigned char xdata In_Buf[2][70]; unsigned char port;
void main(void){ port = In_Buf[0][0]; . . }
"There are specific C rules about what happens when There are locals and globals with the same name." It's not just 'C' - most block-structured high-level languages (HLL) have similar rules. It's a bit like the way you can have many fies on your hard drive all with the same name - you distinguish between them by knowing which folder (directory) each one is in...
just a will goess if 'port' is a rename of SBUF, what you see ios correct Erik