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

communication between main window and new windows

2177


how to get the User's Time of Day

2133


code to positioning of window in certain dimensions

2128


function to combine two or more arrays

2145


code to Hide and Show form controls

2313


how to convert between arrays and strings

2789


code to set the main window's size

2296


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

2260


code to images to rollover

2378


create Drop-Down Navigation Menus

2186


how to Auto Scroll the page

2063


write a code that user can choose/alter Body Text Size

2042


determine which Element received an Event

2334


how to transform XML Data into HTML

2385


how to create Expandable and Collapsible Menus

3248