User account menu

  • Log in
Home
Kozmotronik Blog
From stardust to technology

Main navigation

  • Home
  • Categories
    • Electronics
    • Programming
      • Embedded Programming
      • Mobile Programming
    • Programming Languages
  • Seriler
    • Bluetooth Programming in Android
    • JAL Reference Manual
    • System Programming with Gorevci
  • Projeler
    • Görevci
  • About

Programming

Breadcrumb

  • Home
  • Programming

Character Reading Problem with scanf() in C

By İsmail Sahillioğlu | April 21, 2021
C Art
If you encountered this article and you are reading it, you are most likely dealing with the same problem. You're doing a practice or an application with C, where you need to get input from the keyboard successively, whoops, you suddenly realize that you couldn't read some of the entries, some of the variables just contains an unexpected \n (new line) character. So now what? Let's illustrate the problem with an example snippet of code: #include int main() { char character0; char character1; char character2; char character3; printf("Character0: "); scanf("%c", &character0); printf(
More
C
Standart kütüphane
stdio
scanf
Subscribe to Programming

Projects

Görevci

Monthly archive

  • April 2021 (1)
  • April 2026 (1)

Footer menu

  • Contact

Copyright © 2026 Kozmotronik Tech - All rights reserved

Kozmotronik Tech