Hi. New to C and, linux <-- (sorta). In my C book (one of them anyways) I do the following example
#include <stdio.h>
int main(void)
{
char c;
printf("The address of c = 0x%p\n", &c);
return 0;
}
the problem is the ouput is
The address of c = 0x0xbfffa50
the example says to put the 0x in front of '%p' but it looks like it's printing another '0x'
and the output is supposed to be '0xbfffa50'
Im following the example except I think the author is using a windows machine
Am I doing something wrong here?
thanks