printf("И : %s ",argv[j]); 

In the loop, I output the parameters that I entered through the console ... but outputs only one character at a time. For example: instead of ".cpp" - only ".", How to fix it?

  • The answer is found. Dex, thank you :) - Daniel Pavlov
  • Did you forget the asterisk? - alexlz

1 answer 1

Works great:

 int main(int argc, char **argv) { for(int i=0; i<argc; i++) { printf("%s\n", argv[i]); } return 0; } 
  • Found my mistake, thank you :) - Daniel Pavlov
  • Then the answer would be worth accepting :) - Dex