Write a program in C by taking character at run time and displaying it.
Solution:
------------
#include<stdio.h>
void main()
{
Char e;
printf("enter the character n");
scanf("%c",&e);
printf("%c",e);
}
Output:
-----------
enter the character
h
h
Write a program in C by taking character at run time and displaying it.
Solution:
------------
#include<stdio.h>
void main()
{
Char e;
printf("enter the character n");
scanf("%c",&e);
printf("%c",e);
}
Output:
-----------
enter the character
h
h