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...

Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me

Answer Posted / nitin garg

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


int main()
{


char a;
scanf("%c",&a);
if(a>='A' && a<='Z')
a=a+32;
printf("%d",a-96);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1062


what is uses of .net

1686


Do pointers need to be initialized?

1020


How are strings stored in c?

977


What is the size of enum in bytes?

1039


What are extern variables in c?

952


Can a local variable be volatile in c?

942


What math functions are available for integers? For floating point?

1078


Write a c program to demonstrate character and string constants?

2117


What is the advantage of using #define to declare a constant?

1040


Can we change the value of #define in c?

960


What is the difference between exit() and _exit() function in c?

1021


Why c is called top down?

1095


What is the difference between pure virtual function and virtual function?

1069


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1245