command line arumentgs in c code example
Example 1: command line arguments in c
int main( int argc, char *argv[] )
./a.out kiran kumar gun
./a.out is arg[0]
kirna is arg[1]
Example 2: argument to number C++
// C++ Code
int x = atoi(argv[1]);
int main( int argc, char *argv[] )
./a.out kiran kumar gun
./a.out is arg[0]
kirna is arg[1]
// C++ Code
int x = atoi(argv[1]);