M Mohan Giri In Runtime Messages 144 Apr 14, 2005 #1 what is mean by function returning pointer? Can we print the value at the address using the address without using any variable?
what is mean by function returning pointer? Can we print the value at the address using the address without using any variable?
F f11m Solid State Member Messages 6 Apr 14, 2005 #2 explain what you are asking and maybe i can help
D developer Baseband Member Messages 88 Apr 15, 2005 #3 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.
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.
OP OP M Mohan Giri In Runtime Messages 144 Apr 15, 2005 #4 Can we specify *myfunction() in printf to print a value at the address?