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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!