int main(int argc, const char *argv[])
if(argc != 5)
{
oops: exit(0);
}
if(strlen(argv[1]) != 3)
{
fprintf(stderr, "\nError --- must specify 3 rotors\n");
goto oops;
}
argc and argv[] are declared in main.
when coming to if condition what will be in argv[]? what does it mean and how it works? can any one help me in it?
what will be in argv[]?
argv[] is an array of pointers to const char.
argv[1] is a pointer to a const char.
This is one of the programs i have seen.
there is nothing in argv[].