Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Reading which Character Key was pressed

Answer Posted / jagdish patel

#include<stdio.h>
#include<conio.h>
void main()
{
char character;

character=getch();

if(isalpha(character))
printf("alpha");

else if(isdigit(character))
printf("digit");
else
printf("pressed key is special key");
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

function to combine two or more arrays

2194


how to Scroll a DIV content

2635


how to create an anonymous function

2226


determine which Element received an Event

2382


maximizing the main window

2118


how to create a Custom Scrollbar

2606


write a code to generate pseudorandom numbes

2420


communication between main window and new windows

2228


code to Hide and Show form controls

2379


how to create Expandable and Collapsible Menus

3301


code to detect availability of cookies

2238


code to set the main window's size

2375


Create a ViewState Property?

2764


how to get the User's Time of Day

2174


how to convert between arrays and strings

2881