Home
Mega Menu
FYBCS
_C
_HTML & CSS
SYBCS
_DS
_SCILAB
TYBCS
_JAVA
_PHP
Download Apk
Home
c
C Program - Accept a character from the user and display it's ASCII value
C Program - Accept a character from the user and display it's ASCII value
prozone
June 01, 2018
Program
#include <stdio.h>
int main()
{
char ch;
printf("Enter character: ");
scanf("%c", &ch);
printf("ASCII value of %c is %d \n", ch,ch);
}
Output:
Enter character: r
ASCII value of r is 114
Post a Comment
0 Comments
Popular Posts
C Program - Write a program to accept a matrix A of size mXn and store its transpose in matrix B. Display matrix B. Write separate functions
June 15, 2018
C Program - Accept the x and y coordinates of two point and compute the distance between the two points
June 01, 2018
C Program - Write a program, which accepts two integers and an operator as a character (+ - * /), performs the corresponding operation and displays the result
June 07, 2018
Follow Us
Tags
Powered by Blogger
0 Comments