int NameAbbreviation() {
if (name_last[1] <= 'a' && name_last[1] >= 'b') {
return name_last[1] += 'A' - 'a';
}
printf("%c%c%c", name_first[0], name_last[0], name_last[1]);
}
Hello community my previous questions didn't received good feedback, hope this one doesn't bother you same as my last question.
In this small sample code I try to capitalise the second letter of a char array to safe it later in an own variable called name_abbreviation. Since the code doesn't transform the letter into capital I wonder how I can access letters specific in arrays to change the content and save it.
I don't get any errors but the code doesn't execute the if statement. Name_last[i] is the input value.