What is the best way way to get numeric input in C?

Recommended Answers

All 2 Replies

If your intention is to get a unsigned integer use %u format specifier.

Thank you so much!

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.