Learn C Programming, Recursion in C, Basic recursion examples, Pointer in C programming, Learn Pointer, string c programming examples, array C++ programming examples
C++ Program to print character
Get link
Facebook
X
Pinterest
Email
Other Apps
-
In C++, to get input by user, we use cin>> and to print something we use cout<<.
#include<iostream>usingnamespace std;int main(){char ch;cout<<"Enter a character: ";cin>>ch;cout<<"Character is : "<<ch;return0;}