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

What is the meaning of && in c?

1085


Is using exit() the same as using return?

1463


Explain what happens if you free a pointer twice?

1135


What is the use of #define preprocessor in c?

1121


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

2067


What are header files? What are their uses?

1286


Explain how can I pad a string to a known length?

1249


Explain pointer. What are function pointers in C?

1145


What is meant by operator precedence?

1202


Is it fine to write void main () or main () in c?

1077


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1158


There seem to be a few missing operators ..

1096


What are disadvantages of C language.

1222


What are register variables in c?

1051


Is boolean a datatype in c?

1129