diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-05 05:13:13 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-05 05:13:13 +0000 |
commit | 372310563f11e10d868d914b5c767ea1e1acf4d6 (patch) | |
tree | c1ffbca8fdfb6c2995a40e0bd37ab60e10341bfb /wk2/lect2/greet.c | |
parent | 279c7fe630927a292a2b99d1a820c6483193cdb1 (diff) |
Mon, Dec 4, 2023, 9:13 PM -08:00
Diffstat (limited to 'wk2/lect2/greet.c')
-rw-r--r-- | wk2/lect2/greet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wk2/lect2/greet.c b/wk2/lect2/greet.c index 3f01f2a..eabff90 100644 --- a/wk2/lect2/greet.c +++ b/wk2/lect2/greet.c @@ -1,6 +1,9 @@ #include <stdio.h> #include <cs50.h> +//argc is argument count, ie how many arguments were given +//argv is an array of the arguments given +//argv[0] is the int main(int argc, string argv[]) { printf("hello, %s\n", argv[1]); |