Program which will display the ascii value of the character variable | SpiderShell

Program which will display the ascii value of the character variable | SpiderShell





Program which will display the ascii value of the character variable | SpiderShell
Program which will display the ascii value of the character variable | SpiderShell

Program :


#include <stdio.h>  

int main()  
{  
    char ch;    

    printf("Enter a character : ");  

    scanf("%c",&ch);  

    printf(" The ascii value of the character variable is : %d", ch);

    return 0;  

}  


Output : 


Enter a character : b 

The ascii value of the character variable is : 98

Shubham Arun Sutar

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 Comments:

Post a Comment