Define a function with the prototype char lastInitial(char name[]); that, when given a string containing a space,
Fantastic news! We've Found the answer you've been seeking!
Question:
Define a function with the prototype
char lastInitial(char name[]);that, when given a string containing a space, returns the first character after the first space (' '). If there is no space, or the space is the last character, return zero (which is, incidentally, the numeric value of '\0').
Note: this is not returning a one character string, but a character.
c++
Posted Date: