move exercises, lecture examples, labs into subfolders

This commit is contained in:
2023-10-13 16:19:51 +01:00
parent a602f20e01
commit 015b5d6a08
200 changed files with 2 additions and 2 deletions

27
Lectures/LC7/getchar.c Normal file
View File

@@ -0,0 +1,27 @@
/*
Chapter 7: example of getchar
This program reads a single keystroke and displays it
on the screen
*/
#include <stdio.h> /* Standard include files */
#include <stdlib.h>
int main(void)
{
char x; /* Define a variable of type char */
x = getchar(); /* Use getchar to read a keypress and store the */
/* result in 'x' */
putchar(x); /* Display the character stored in 'x' on the */
/* screen using putchar */
return 0;
}