Program to demonstrate the use of getchar() at the place of scanf


#include<stdio.h>
#include<conio.h>

main()
{
      int c;
      printf("\nType a character : ");
      c=getchar();
      printf("\nTyped character is %c",c);
      printf("\nTyped character is %d",c);
      getch();
}

Comments

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples