Check out example codes for "giving arguments to main function in c". It will help you in understanding the concepts better.

Code Example 1

/* 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 */

Learn ReactJs, React Native from akashmittal.com