← Back to Pointers
Question 428
Next Letter Through a char Pointer
Next Letter Through a char Pointer
Read one character from input intoletter, point acharpointer namedcpat it, print the letter through the pointer, then advance the letter by one BY WRITING THROUGHcp. The final line is already written for you. Input: one character. For the inputbprint 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 — 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.