09-14-2022, 08:18 PM
(This post was last modified: 09-14-2022, 08:20 PM by Kernelpanic.)
Quote:I looked at the screenshot. "scanf()" only picks up as many characters as it thinks should fit into the type asked for by the "format" first parameter it's given, that's why it displayed strange values in the first and second attempts. If it's going to convert improperly like that, it's not going to matter if it could accept 10 digits or 100 digits.
Yes, but it shows that something is wrong. And that, I think, is the main thing.
"scanf" is one of those things, but I'd have to look at my books and notes again now -- No, nullo interresto!