---
title: "Discussion on \"Input Buffer in C\" | Hashnode"
description: "Discussion on \"Input Buffer in C\". Unexpected behavior of scanf & fgetchar"
url: "https://hashnode.com/posts/input-buffer-in-c/6684ccd5434905c2be099220"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Input Buffer in C](https://asem-hamid.hashnode.dev/input-buffer-in-c?utm_source=hashnode&utm_medium=feed)

Unexpected behavior of scanf & fgetchar

Jul 3, 2024 · 3 min read · asem-hamid.hashnode.dev  
Updated Sep 18, 2024  
Read the article

-   [#input-buffer](https://hashnode.com/tag/input-buffer)
-   [#c](https://hashnode.com/tag/c)
-   [#scanf](https://hashnode.com/tag/scanf)
-   [#getchar](https://hashnode.com/tag/getchar)

## Written by

[Asem Hamid](https://hashnode.com/@asemhamid)

@asemhamid

  
[View profile](https://hashnode.com/@asemhamid)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
