programs/C4.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 19 Nov 2013 03:05:48 +0000
changeset 135 e78af5feb655
parent 28 10da75d5db5d
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]);
}