KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is difference between %d and %u when printing pointer addresses? For example: int a = 5; // check the memory address printf("memory address = %d\n", &a); // prints "memory address = -12" printf("memory address = %u\n", &a); // prints "memory address = 65456"
Tags (comma-separated)
Save Edits
Cancel