Previous Next
0 / 18
Module DEMO-32-90DEMO-C-32

Next Character

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a function char nextChar(char c) that returns the next character in the ASCII sequence.

For example, 'a' becomes 'b'.

Constraints

Standard ASCII.

Input Format

A single char.

Output Format

The next char.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
a
b
a -> b.
Sample #2
Public sample
1
2
1 -> 2.
Sample #3
Public sample
A
B
A -> B.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings