#include <stdio.h>
int main(void) {
int x = 10;
int *p = malloc(16);
printf("%p %p\n", &x, p);
return 0;
}
first will print an address in the stack
second an address in heap
no big deal, uh? :)
On Mon, Oct 3, 2011 at 7:28 AM, rahul sharma <[email protected]> wrote:
> % p prints the corresponding argument that is pointer.....can nyone given an
> xample plz?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
Hatta
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.