C++ pointer usage in embedded system

Status
Not open for further replies.

thannara123

Advanced Member level 5
Joined
Jan 7, 2010
Messages
1,587
Helped
122
Reputation
244
Reaction score
114
Trophy points
1,353
Activity points
10,462
Hai experts ,
I want to know the usage of Pointer in C++ / C .with example in case of Embedded system (PIC ,8051).(keil or mikroc)

Thanks in advance
 

Basically,Pointer is used to hold the address...may be of a single variable or of an starting address of array (which we call chunk of memory)

One case where it is useful is, if we are passing an array to a function, we need not send the whole array at a time, by simply passing starting address of the array (i.e., pointer) there by making the entire array accessible in the function....

Another case is dynamic memory allocation...where memory is allocated during run time....
 

thanks sir for replay by the using of pointer we can get memory
is int it sir ?
please give a simple instruction

---------- Post added at 13:36 ---------- Previous post was at 13:31 ----------

thanks sir for replay by the using of pointer we can get memory
is int it sir ?
please give a simple instruction
 

hai every body finally i findout the details of pointers usage
**broken link removed**
 

There is also a nice tutorial for pointers here
**broken link removed**

It has a PDF version too if you want to download it.

Alex
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…