P058.c
Problem Statement
P058.c
WAP to display ASCII code of Alphabets (A - Z) using void displayASCII()
Source Code
c
#include <stdio.h>
void displayASCII()
{
int i;
printf("ASCII Code\t\tCharacter");
for (i = 'A'; i <= 'Z'; i++)
printf("\n%c\t\t%d", i, i);
}
int main()
{
displayASCII();
return 0;
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
● Author - Amit Dutta · Updated - 12 Dec 2025