Hello, I have a very basic question, and this doesn't seem to be working for me:

Heres a test code:

Code:
#include <stdio.h>

int main()
{
   unsigned char *myptr;
   unsigned char myArray[256];

   // assign values to myArray here
   ...
   //

   myptr = &myArray;

   return 0;
}
Ok, Id like myptr to point to the memory address of myArray[0] but for some reason it doesn't work. Is my code right? Thanks.