C Program to Find ASCII Value of a Character

// C program to print
// ASCII Value of Character
#include <stdio.h>
int main()
    char c = 'k';
    // %d displays the integer value of a character
    // %c displays the actual character
    printf("The ASCII value of %c is %d", c, c);
    return 0;


The ASCII value of k is 107

Leave a Comment