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

code to images to rollover

2339


how to create an anonymous function

2101


advance the focus to next consecutive fields when Enter Key is pressed

2220


code to create a new window

2151


how to pass data between pages using Frames

2667


code to positioning of window in certain dimensions

2088


program to show a progress bar

2579


sample code to auto focusing the first field in a form

2435


program to bring a window to the front

1991


code to keep a page Out of the browser history

2003


communication between main window and new windows

2145


code to set the main window's size

2227


How to block double clicks

2080


Create a ViewState Property?

2663


How to encode and decode URL strings?

2259