Write a C program to print ASCII values of all characters Hindi

Write a C program to print ASCII values of all characters

ASCII की full form American Standard Code for Information Interchange है | ASCII मे हर एक alphabetic, numeric, or special character का एक code होता है For Example – ‘A’ का ASCII कोड 65, B का 66 होता है | ASCII क्या होता है जाने के लिए click करे.

यहाँ पर हम C program मे computer मे store सभी characters की ASCII values को print करेंगे | सभी characters की ASCII values को print करने के लिए हम 0 to 255 तक loop चला कर सभी ASCII character code को प्रिंट करेंगे |

print ASCII values of all characters

Print ASCII values of all characters

#include<stdio.h>

int main(){

    int count;

    for(count=0;count<=255;count++)

         printf(“ASCII value of character %c: %d\n”,count,count);

    return 0;

}

 Program Output – 

ASCII value of character  : 0

ASCII value of character ☺: 1

ASCII value of character ☻: 2

Read Also – What is Object Oriented Programming

Read Also – What is Polymorphism

Read Also – What is C Programming language

Read Also – What is OOPs

Read Also – What is Array in C Programming Language

One Response

  1. anand singh dodiya October 4, 2017

Leave a Reply