Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

C++ pointer usage in embedded system

Status
Not open for further replies.

thannara123

Advanced Member level 5
Joined
Jan 7, 2010
Messages
1,580
Helped
122
Reputation
244
Reaction score
114
Trophy points
1,353
Location
Usa
Activity points
10,384
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top