I was trying to add to this printf() the command to print argv[i] like so:
printf("%d: %c is not a vowel. letter: %c\n", i, letter, argv[i]);
Format %c didn’t work. It gives an error:
I couldn’t find which is the right format for ‘char *’ so I just tried every letter.
Two letters works: %s and %p
Meaning it will compile and run the program. But it just prints random stuff:
notice that between letter 3 and 4 there is 33 which gives some large output…
anyhow. I don’t think I manage to print argv[i].
An explanation for what happened here and how to actually print argv[i] would be very appreciated.