progs/C4.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 07 Oct 2013 17:45:12 +0100
changeset 110 fefd78525434
parent 105 40c51038c9e4
child 115 c4008b31df8e
permissions -rw-r--r--
added

#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]);
}