Answer the below questions:
Study the ASCII code table carefully and find out the relationship between the ASCII code for the capital letters and the small letters.
Ascii code for “A” is______________ Asci code for “a” is______________
Ascii code for “Z” is______________ Asci code for “z” is______________
Ascii code for “&” is______________ Asci code for “@” is______________
Ascii code for “0” is______________ Asci code for “9” is______________
Create a C program:
|
Flowchart: |
C program: |
Output: |
ASCII code is the numerical value of the each characters developed by ASCII(American Standard for Information Interchange).
To convert a given character into corresponding ASCII code we use %d ( format specifier ) that gives the ASCII value of given character.
C- program:-
#include<stdio.h>
int main()
{
char s;
printf("Enter the character:");
scanf("%c",&s);
printf("ASCII code for '%c' is %d\n",s,s);
return 0;
}
Flowchart:-
After runing this C program, we will find the required output.
Get Answers For Free
Most questions answered within 1 hours.