Err, if you're just wanting to pass it variables when it is first launched, then the commands are in the argv[] array. argv[0] will always be the command name, but anything else a user types after the command will be listed there. The commands will be separated by any spaces, so like if I entered someProg do something, the argv array would be: argv[0]="someProg", argv[1]="do", and argv[2]="something". Note that all the arguments are going to be strings, so if you need numbers, you'll have to convert the string to ints or floats or whatever you need.
If you need to get how many arguments were passed into the program, argc will let you know. It will always be at least one, since the command name is always considered one of the arguments passed to the program.
Just in case you're wondering where I'm getting argc and argv[] from, they're declared in the main() function: int main(int argc, const char *argv[])