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
What is the meaning of && in c?
Is using exit() the same as using return?
Explain what happens if you free a pointer twice?
What is the use of #define preprocessor in c?
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
What are header files? What are their uses?
Explain how can I pad a string to a known length?
Explain pointer. What are function pointers in C?
What is meant by operator precedence?
Is it fine to write void main () or main () in c?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
There seem to be a few missing operators ..
What are disadvantages of C language.
What are register variables in c?
Is boolean a datatype in c?