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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -