changeset 28 | 10da75d5db5d |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/programs/C4.c Mon Oct 08 10:34:12 2012 +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]); +}