From de102d58347dbbea67f69a4f2d5278f738e7f1c8 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Wed, 6 Dec 2023 05:24:09 +0000 Subject: Tue, Dec 5, 2023, 9:24 PM -08:00 --- wk2/sect2/initials.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 wk2/sect2/initials.c diff --git a/wk2/sect2/initials.c b/wk2/sect2/initials.c new file mode 100644 index 0000000..431b04c --- /dev/null +++ b/wk2/sect2/initials.c @@ -0,0 +1,12 @@ +#include +#include +#include +#include + +int main(int argc, string argv[]) +{ + for (int i = 0; i < argc; i++) + { + printf("argv[%i] is %s\n", i, argv[i]); + } +} -- cgit v1.2.3