summaryrefslogtreecommitdiff
path: root/wk2/lect2
diff options
context:
space:
mode:
Diffstat (limited to 'wk2/lect2')
-rw-r--r--wk2/lect2/greet.c3
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]);