i just want to print the number of the digits of the second argument. Why is that wrong??Code:nt main (int argc, char **argv[]){ int i=0; scanf ("%s",*argv[1]); while (argv[1][i]!='\0') i++; printf ("%d",i); }
i just want to print the number of the digits of the second argument. Why is that wrong??Code:nt main (int argc, char **argv[]){ int i=0; scanf ("%s",*argv[1]); while (argv[1][i]!='\0') i++; printf ("%d",i); }