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 detect availability of cookies

2165


determine which Element received an Event

2315


create Drop-Down Navigation Menus

2153


how to create a Custom Scrollbar

2523


Create a ViewState Property?

2688


how to create Expandable and Collapsible Menus

3226


function to combine two or more arrays

2128


How to encode and decode URL strings?

2283


how to pass data between pages using Cookies

2426


code to images to rollover

2353


code to keep a page Out of the browser history

2024


how to create a Draggable element

2404


communication between main window and new windows

2164


code to set the main window's size

2258


how to transform XML Data into HTML

2358