Question:Code to find the ASCII values of given character in c programming language 

Answer 
#include<stdio.h>

int main(){
  
    char c;

    printf("Enter any character: ");
    scanf("%c",&c);

    printf("ASCII value of given character: %d",c);
        
    return 0;
}
Sample output: Enter any character: a ASCII value of given character: 97 

+ Report
Total Preview: 582
Code to find the ASCII values of given character in c programming language
Copyright © 2024. Powered by Intellect Software Ltd