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
"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
what is uses of .net
Do pointers need to be initialized?
How are strings stored in c?
What is the size of enum in bytes?
What are extern variables in c?
Can a local variable be volatile in c?
What math functions are available for integers? For floating point?
Write a c program to demonstrate character and string constants?
What is the advantage of using #define to declare a constant?
Can we change the value of #define in c?
What is the difference between exit() and _exit() function in c?
Why c is called top down?
What is the difference between pure virtual function and virtual function?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?