What is %u and how and where can we use it?
lastbencher 0
Newbie Poster
Recommended Answers
Jump to PostCan you please RTFM?
Jump to Posta code in 'Let Us C' by Y.Kanetkar confused me since i am only a beginner
A lot of people mistakenly use %u to print the value of a pointer. The correct method is using %p and casting non-void pointers to void:
printf("Original address in x = …
Jump to Postis this any better?
No.
or should i just follow the 'Starting C' section?
I'd suggest a good book.
- Programming in C by Stephen G. Kochan is decent enough and accessible in my opinion.
- C Programming: A Modern Approach by K. N. King is probably the most recommended beginner's …
All 9 Replies
D33wakar 36
Posting Whiz in Training
lastbencher 0
Newbie Poster
Narue 5,707
Bad Cop Team Colleague
Moschops
commented:
Harsh but fair :) +7
Moschops 683
Practically a Master Poster Featured Poster
lastbencher 0
Newbie Poster
Narue 5,707
Bad Cop Team Colleague
lastbencher 0
Newbie Poster
Narue 5,707
Bad Cop Team Colleague
lastbencher 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.