Next Letter Through a char Pointer
easyQuestion 428Read one character from input into letter, point a char pointer named cp at it, print the letter through the pointer, then advance the letter by one BY WRITING THROUGH cp. The final line is already written for you.
Input: one character.
For the input b print exactly the output shown in Expected Output.
Assume the input is never 'z' or 'Z'.
Expected output
Letter: b Next letter: c
= newline. The output ends with a newline, so print one after the last line.
Hints3 available
Sign in to use hintsTopics
Pointers
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.