28
|
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 |
}
|