params in main function in C code example
Example 1: params in main function in C
#include <stdio.h>
int main(int argc, char * argv[]){
//put your code here
}
Example 2: giving arguments to main function in c
/* main.c */
/* 0 copyright/licensing */
/* 1 includes */
/* 2 defines */
/* 3 external declarations */
/* 4 typedefs */
/* 5 global variable declarations */
/* 6 function prototypes */
int main(int argc, char *argv[]) {
/* 7 command-line parsing */
}
/* 8 function declarations */