move exercises and lectures into subfolders

This commit is contained in:
2023-10-15 15:34:53 +01:00
parent 775b4bd643
commit 74092a17aa
177 changed files with 0 additions and 0 deletions

24
Lectures/LC19/Enum/enum.c Normal file
View File

@@ -0,0 +1,24 @@
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
/* Set up our enumerated type */
enum Days { Mon, Tue, Wed, Thu, Fri, Sat, Sun };
/* If we wish, we can set the base level */
//enum Days { Mon = 1 , Tue, Wed, Thu, Fri, Sat, Sun };
/* Create a variable that can take values of this type */
enum Days DOW;
/* Set variable equal to one of these days */
DOW = Sun;
/* And print the assigned value */
printf ("\nThe value assigned to Sun is %d ",DOW);
return 0;
}