Function returning pointers

Status
Not open for further replies.

Mohan Giri

In Runtime
Messages
144
what is mean by function returning pointer? Can we print the value at the address using the address without using any variable?
 
int *myfunction(int a)
This is an example of a pointer returning function. How do you have the address, u must have it in some variable. * is value at the address operator. You cannot simply reference any memory as it may be not in your bounds.
 
Status
Not open for further replies.
Back
Top Bottom