Initial commit of lecture code

This commit is contained in:
Louise Brown
2022-04-07 16:58:01 +01:00
commit 5b205092a7
60 changed files with 2413 additions and 0 deletions

19
LC21/simple.c Normal file
View File

@@ -0,0 +1,19 @@
#include <stdio.h>
#include <stdlib.h>
/* Note the new type of main */
int main(int argc, char *argv[])
{
int x;
/* Print the argument count */
printf("Arguments -> %d\n",argc);
/* And the arguments themselves */
for (x=0; x<argc; x++)
printf("%s\n",argv[x]);
return 0;
}