You should start looping at i = 1 because the first arguments argv[0] is the program name as you write at the terminal
int i = 1;
for ( i = 1 ; i < argc ; i++ ){
//code
}
Type: Posts; User: Aslaville
You should start looping at i = 1 because the first arguments argv[0] is the program name as you write at the terminal
int i = 1;
for ( i = 1 ; i < argc ; i++ ){
//code
}