Like C and many others, the main function that starts a process allows two parameters or no parameters to be passed. The two parameters that may be passed are an integer and a two-dimensional array of char and looks like: int main(int argc, char ** argv). Though argc and argv are often what they are called, they may be named anything you want them to be called since your implementing the function. A common example is like this:
To add to this, the example given is an EXTREMELY unsafe and non-standard method of going about things. I really do suggest you make a library and call functions with parameters from that or you implement it into your current executable / library.