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

How do you use a 'Local Block'?

1160


Is c dynamically typed?

1140


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2079


Ow can I insert or delete a line (or record) in the middle of a file?

986


What is huge pointer in c?

1064


How do you construct an increment statement or decrement statement in C?

1213


In which layer of the network datastructure format change is done

1875


What is the most efficient way to count the number of bits which are set in an integer?

1035


When should a type cast be used?

999


How can I generate floating-point random numbers?

1117


Write a program to swap two numbers without using third variable?

1280


Why pointers are used?

1059


What is the difference between the expression “++a” and “a++”?

1214


application attempts to perform an operation?

1959


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

1146