Skip to content
Question Bank (2 marks) · Q27

Q.Write the general fomat of ‘scanf()’ formated input.

Karnataka PUCTextbookShort· 2mImportance★★★★★est
82% · 126/154 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

[!TLDR]

General form: scanf("control string", &var1, &var2, ...);

The scanf() function reads formatted input from the keyboard. Its first argument is a control string containing conversion specifiers (such as %d for an integer, %f for a float, %c for a character), and the remaining arguments are the addresses of the variables into which the values are stored, given using the address-of operator &.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.