C program to print ASCII value of a character


Example

#include <stdio.h> 
int main() 
{ 
	char c = 'k'; 

	printf("The ASCII value of %c is %d", c, c); 
	return 0; 
}                                 


Output

The ASCII value of k is 107