Search
 
SCRIPT & CODE EXAMPLE
 

C

print ascii value in c

#include <stdio.h>
int main() {  
    char c;
    printf("Enter a character: ");
    scanf("%c", &c);  
    
    // %d displays the integer value of a character
    // %c displays the actual character
    printf("ASCII value of %c = %d", c, c);
    
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: multiplication of two matrix in c 
C :: graphics in c 
C :: write a program in c to check whether the number is armstrong or not 
C :: how to get add to number C 
C :: scan numbers into array c 
C :: block a website on mac 
C :: console log observable data 
C :: va_list in c 
C :: printf type format 
C :: find length of int number in c 
C :: c binary search 
C :: c program to find minimum of 4 numbers using conditional operator in c 
C :: c program for swapping of two numbers using temporary variable 
C :: c if 
C :: bash while loop n times 
C :: input array elements in c 
C :: c programming how to force stop the programme 
C :: print a part of string c 
C :: strings in c 
C :: memory layout in c 
C :: int to double c 
C :: Palindrome number in c program 
C :: how to empty array in c 
C :: faire une facture en langage c 
C :: lxc Failed to load config for 
C :: how to arrange a 2d array based on string length in c 
C :: get boolean from localstorage 
C :: calling of a void in c 
C :: what is %d in C 
C :: fine print serial key 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =