summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-06 05:23:15 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-06 05:23:15 +0000
commit507084244f4809641759293ac549d8707ffde47b (patch)
treeb2c44c9b74f874c396757f36835ab01208fadd88
parent824060199d22c746befd951824b2dec1b04d3c0c (diff)
Tue, Dec 5, 2023, 9:23 PM -08:00
-rw-r--r--wk2/sect2/cla.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wk2/sect2/cla.c b/wk2/sect2/cla.c
new file mode 100644
index 0000000..431b04c
--- /dev/null
+++ b/wk2/sect2/cla.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <ctype.h>
+#include <cs50.h>
+#include <string.h>
+
+int main(int argc, string argv[])
+{
+ for (int i = 0; i < argc; i++)
+ {
+ printf("argv[%i] is %s\n", i, argv[i]);
+ }
+}