WHAT'S NEW?
Loading...

C Program to print ascii codes and characters


/*program to print ascii characters for code 32 to 255*/
#include<stdio.h>

void main() {
    int i;
    for (i = 32; i < 255; i++)
        printf("%2c= %d", i, i);
}

1 comment: Leave Your Comments

  1. A character in C programming language is stored as a particular integer in memory location. The integer value corresponding to a character is know as it's ASCII value. For Example, the ASCII value of 'A' is 65.

    ReplyDelete