[algogeeks] c help

2011-10-03 Thread rahul sharma
% 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 algogeeks@googlegroups.com. To unsubscribe from this group, send

Re: [algogeeks] c help

2011-10-03 Thread Hatta
#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 rahul23111...@gmail.com wrote: % p prints the