Assignments » Variable, Operator and Expression » Set2 » Solution 4

Write a program which accepts a character and display its next character.



#include<iostream>
using namespace std;

int main()
{
	char ch;
	cout<< "\nEnter any character : ";
	cin>>ch;
	ch++;
	cout<<"Next character is : "<<ch;
	
	
	return 0;
}

Enter any character : D
Next character is : E