answersLogoWhite

0

%p prints a pointer, %x prints an integer. They may be similar, but not the same. Eg.

printf ("ptr=%p int=%d\n", main, (int)main);

DOS: ptr=0F01:0010 int=10
Windows: ptr=:0F010010 int=F010010

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

Add your answer:

Earn +20 pts
Q: Difference between percent p and percent x in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp