So I have a string passed into main function: int main(int argc, char* argv[])
I understand argc (which is 2 in this case), but don't understand how I can read argv[] character by character? When I print argv[0] shouldn't that print the first character in the array of characters for that string?
Thanks
argv[1]
. The first character of that would beargv[1][0]
. - Retired Ninja