Hi
I need help to understand basic of pointer in embedded C Programming. In text book say "A pointer is a variable which contains the address in memory of another variable" But I don't understand how does pointer work. I know what is address and variable.
Declaration of pointer : Data_Type * Pointer_Name
Example :
unsigned int * Numbers ;
unsigned char * Letters ;
actual variable Declaration
unsigned int Num = 5;
Assign value to pointer
Pointer Declaration and assign value
unsigned int * Numbers = Num;
Please Help me. I want to understand basics of pointer. How does they work and when we need to use in embedded programming ?
I need help to understand basic of pointer in embedded C Programming. In text book say "A pointer is a variable which contains the address in memory of another variable" But I don't understand how does pointer work. I know what is address and variable.
Declaration of pointer : Data_Type * Pointer_Name
Example :
unsigned int * Numbers ;
unsigned char * Letters ;
actual variable Declaration
unsigned int Num = 5;
Assign value to pointer
Pointer Declaration and assign value
unsigned int * Numbers = Num;
Please Help me. I want to understand basics of pointer. How does they work and when we need to use in embedded programming ?