For a numeric conversion using scanf() without a s...
Guiding State PSC aspirants since 2016 50,000+ students · 1,000+ final selections Exam Calendar Results Call 9116926003
pscnotes
Pick your state
GPSC Prelims previous year questions

For a numeric conversion using scanf() without a specified field width, input reading normally stops when

Asked in GPSC ICT Officer, Class-2 2026

  1. A whitespace or a character that cannot be part of the number is encountered.
  2. A fixed maximum number of characters is always read.
  3. Both (A) and (B) are always correct.
  4. Neither (A) nor (B) is correct.
Show answer

Answer: A. A whitespace or a character that cannot be part of the number is encountered.

This previous-year question came without the commission's answer key; the answer was checked by AI. Always confirm with the official key.

More GPSC Prelims previous year questions questions

All 26,263 GPSC Prelims previous year questions questions →