changeset 198 | 2ce98ee39990 |
parent 28 | 10da75d5db5d |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Attic/programs/C4.c Sat Oct 04 13:17:18 2014 +0100 @@ -0,0 +1,15 @@ +#include<stdio.h> +#include<string.h> + +// a program that just prints the argument +// on the command line +// +// try and run it with %s + + +main(int argc, char **argv) +{ + char *string = "This is a secret string\n"; + + printf(argv[1]); +}