Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (anonymous):

what is mean 0f %p in c language?

OpenStudy (anonymous):

It's printf style format specifier. %p is for pointers types, while %x is for integers types and means "display the integer's hexadecimal value". Here's an example: > cat format.c #include <stdio.h> int main(void) { int i = 10; printf("dec -> %d\n", i); printf("hex -> %x\n", i); printf("addr -> %p\n", &i); return (0); } > gcc -Wall -o format format.c && ./format dec -> 10 hex -> a addr -> 0xbfcc4894

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!