summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-06 05:26:16 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-06 05:26:16 +0000
commit9580214fabf0d9a2849acf38beeedcb50d4c0bba (patch)
treed044aa9527307959f7361cfb28ff495416cf521d
parentde102d58347dbbea67f69a4f2d5278f738e7f1c8 (diff)
Tue, Dec 5, 2023, 9:26 PM -08:00
-rw-r--r--wk2/sect2/initials.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wk2/sect2/initials.c b/wk2/sect2/initials.c
index 431b04c..45a36c6 100644
--- a/wk2/sect2/initials.c
+++ b/wk2/sect2/initials.c
@@ -5,8 +5,9 @@
int main(int argc, string argv[])
{
- for (int i = 0; i < argc; i++)
+ for (int i = 1; i < argc; i++)
{
- printf("argv[%i] is %s\n", i, argv[i]);
+ printf("%c", argv[i][0]);
}
+ printf("\n");
}