The following code block is producing and endless loop and I can't figure out why. Note that charv is just he second command line argument in the main function.
int testNumber = 1;
while(argv != '\0')
{
std::cout << testNumber;
argv++;
testNumber++;
}
I wrote this piece of code just as a test to see if the loop could be controled using the '\0' element of the char array from the command line argument.