Question: Complete the following code to print the last character in an input string to the terminal. The code has some // FIXMES-please fill them in

Complete the following code to print the last character in an input string to the terminal. The code has some // FIXMES-please fill them in with correct code: // FIXME: what should go here? int main() { // FIXME: what needs to be up here? cout > s; // FIXME: add code to print the *last* character in the strings return 0; } For example, if the user types the word "lolololz", then your program should print the character 'z
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
