Hi I'm new to C and I'm having trouble finding a way of printing only the 4th, 5th or 10th letter of a String.
I've got this little code:
char firstWord[100];
char secondWord[100];
printf("Please type in: Hello World\n");
fgets(firstWord, sizeof(firstWord), stdin);
printf("Please type in: How are you?\n");
fgets(secondWord, sizeof(secondWord), stdin);
printf("You typed: %s,%s", firstWord, secondWord);
strcat(firstWord, secondWord);
printf("together it looks like this: %s", firstWord);
Now how would I print for instance the 4th or the 6th character only of the concatenated string?