+ 5
What does argv[1][i] - 64 or argv[1][i] - 96 mean?
6 ответов
+ 6
Anna true
Thanks a lot much appreciated
+ 6
*AsterisK* it does exactly what Anna mentioned
+ 4
Take char at index i of the first command line argument (argv[0] is the program name) and subtract 64 or 96, probably because char(65) is 'A' and char(97) is 'a'. The purpose of this is difficult to tell without seeing the code
+ 3
what is the code intend to do???
+ 3
I think it prints the letters of the second command line argument depending on their position in the alphabet ('a' will be printed once, 'b' twice, ... 'z' 26 times).
B.L Sibanyoni I think there's an i++ missing in line 44