C Program For First Year Engineering

It is the basic for those who wants to learn C Program.


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

🎭 Series Post

View all