Home » C programs

scanf() example programs in C language

This section contains various solved examples/programs based on scanf() function in C programming language.

  1. Input integer, float and character values using one scanf() statement in C.
  2. Input an integer value and print with padding by Zeros in C
  3. Input float value and print it with specified digit after decimal point in C
  4. Input an unsigned integer value using scanf() in C
  5. Input a hexadecimal value using scanf() in C
  6. Input octal value using scanf() in C
  7. Input decimal, octal and hexadecimal values in character variables using scanf() in C
  8. Input an integer value in any format (decimal, octal or hexadecimal) using '%i' in C
  9. Input individual characters using scanf() in C
  10. Skip characters while reading integers using scanf() in C
  11. Read a memory address using scanf() and print its value in C




Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.