if write/take a one space after ACCESS SPECIFIER in a scanf(), then why it takes extra inputs????????

e.g.

scanf("%d ",&n);


it will take numbers....instead of one?

Whitespace in the format string says "skip all whitespace".

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.