progs/C4.c
changeset 105 40c51038c9e4
child 115 c4008b31df8e
equal deleted inserted replaced
104:729b86eae005 105:40c51038c9e4
       
     1 #include<stdio.h>
       
     2 #include<string.h>
       
     3 
       
     4 // a program that just prints the argument
       
     5 // on the command line
       
     6 //
       
     7 // try and run it with %s
       
     8 
       
     9 
       
    10 main(int argc, char **argv)
       
    11 {
       
    12         char *string = "This is a secret string\n";
       
    13 
       
    14         printf(argv[1]);
       
    15 }