summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/main.c b/main.c
index d1a0f09..d419049 100644
--- a/main.c
+++ b/main.c
@@ -1,10 +1,13 @@
#include <stdio.h>
-int main(int argc, char *argv[])
+// name: main
+// parameters:
+ // argc: # of arguments passed to the program
+ // argv: argument vector. list of parameters that passed to the program
+// return int which is a number
+int main(int argc, char const *argv[])
{
- for (int i = 0; i < 100; i++) {
- printf("%d - Oh, hey Caius!\n", i);
- }
-
+ printf("number of args: %d\n", argc);
+ printf("args: %s\n", argv[0]);
return 0;
}