--- title: "The C Column" type: "article" slug: "the-c-column-4" url: "http://localhost/article/the-c-column-4/" markdown_url: "http://localhost/article/the-c-column-4.md" published_at: "2026-01-21T12:24:23+00:00" modified_at: "2026-01-21T12:24:23+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Last month we looked at a simple program. This month we will look at how to do input and output in C. C has no built in input or output commands. Functions are called that perform input and output. Last month we used the function printf. This month we wiil use the function getchar. Getchar…" category: - name: "CATS Newsletter" slug: "cats-newsletter" taxonomy: "category" url: "http://localhost/category/periodicals/cats-newsletter/" post_tag: - name: "C (programming language)" slug: "c-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/c-programming-language/" indiv: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" publication_r: id: 35941 title: "CATS Newsletter" type: "periodical" url: "http://localhost/periodical/cats-newsletter/" authors_r: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" volume: "8" issue: "1" issues_articles: - id: 38911 title: "CATS v8 n1" type: "issue" url: "http://localhost/issue/cats-v8-n1/" pages: "5-6" pubdate: "June 1990" archive_link: false --- Last month we looked at a simple program. This month we will look at how to do input and output in C. C has no built in input or output commands. Functions are called that perform input and output. Last month we used the function printf. This month we wiil use the function getchar. Getchar gets one character from the standard input channel, the keyboard. The input from getchar is assigned to an integer variable.