CJCoding With Joseph
15free / daySign inCreate account

Next Letter Through a char Pointer

Read 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 — print one after the last line.

Hints3 available
Topics:
Pointers
📥 Auto-Input:
b\n
This input is automatically fed to your program's stdin
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.