Ask your own question, for FREE!
Computer Science 17 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!
Latest Questions
Jalissa21: What does adenoma mea?
28 minutes ago 2 Replies 0 Medals
Twilightt: How Can We Prevent Gun Violence in American Schools?
28 minutes ago 4 Replies 1 Medal
Twaylor: possible?
2 days ago 5 Replies 0 Medals
Arriyanalol: hekp
4 days ago 33 Replies 0 Medals
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!