Write C program to print ASCII values of all characters


Introduction

Write C program to print ASCII values of all characters.


techstudy.org

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <stdio.h>

int main()
{
    int i;

    // Printing ASCII values from 0 to 255
    for(i=0; i<=255; i++)
    {
        printf("ASCII value of %c = %d\n", i, i);
    }

    return 0;
}

Result

C language

     





Related Topics


Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.