Format Specifier in C -
what %p format specifier in c means? how interpreted in printf statement?
for example, when run following line in gcc compiler,
int a=1; printf("%p",a);
the o/p got is: 00000001 8 digits mean?
%p
- print void * (pointer void) in implementation-defined format (source: http://en.wikipedia.org/wiki/printf#format_placeholders ).
most implementations use hexademical string representation of value.
Comments
Post a Comment