programs/C4.c
changeset 28 10da75d5db5d
equal deleted inserted replaced
27:5bf1f248407c 28:10da75d5db5d
       
     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 }