To print ASCII value

 #include <stdio.h>

int main() {
    char c;
    printf("Enter char: ");
    scanf("%c",&c);
    printf("ASCII value is: %d",c);
    return 0;
}

Comments

Popular posts from this blog

Transpose

1 to n without any parameter Recursion

Recursion Factorial