logo
Course thumb

The C programming language made simple

Details about the main function

#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[], char* envp[]) { int i; for (i = 0; i < argc; i++) { printf("%s\n", argv[i]); } for (i = 0; envp[i] != NULL; i++) { printf("%s\n", envp[i]); } return 0; }