3/22/21

C Program to Find ASCII Value of Character.


C program to find out the ASCII code of any Character.

Method 1

#include<stdio.h>

void main()

{

int a;

char ch;

printf("Enter any character:");

scanf("%c",&ch);

a=ch;

printf("ASCII value of %c is %d",ch,a);

getch();

}


Method 2

#include <stdio.h>

void main()

{

char c;

printf("Enter any character =");

scanf("%c", &c);

printf("ASCII Value is = %d",c);

return 0;

}

Output:-





"+y+""}else{if(A==5){c+='
  • '+w+""+y+"
  • "}else{if(A==6){c+='
  • "+w+'
    '+u+""+y+"
  • "}else{c+='
  • "+w+"
  • "}}}}}s.innerHTML=c+=""+y;d.callBack()};randomRelatedIndex=h;showRelatedPost=g;j(d.homePage.replace(/\/$/,"")+"/feeds/posts/summary"+e+"?alt=json-in-script&orderby=updated&max-results=0&callback=randomRelatedIndex")})(window,document,document.getElementsByTagName("head")[0]); //]]>

    2 comments:

    1. Their collaborative and thorough approach partner to create a successful engagement
      developing a logo

      ReplyDelete
    2. You create sense out of the foremost complex topics.
      user experience consulting

      ReplyDelete

    Follow on Twitter

    Linkedin

    Categories

    Mad About Computer. Powered by Blogger.
    This site is in no way affiliated with or endorsed by specified business. It exists as a compendium of supporting information intended for informational purposes only. If you want to buy this website, please don't hesitate to contact us via e-mail: "d e n a c c 9 7 7 (at) g m a i l (dot) c o m" (delete spaces) or you can find and buy it on Afternic domain auctions.