Attic/programs/C4.c
changeset 198 2ce98ee39990
parent 28 10da75d5db5d
equal deleted inserted replaced
197:9c968d0de9a0 198:2ce98ee39990
       
     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 }