GeekInterview.com
Series: Subject: Topic:
Question: 51 of 238

Find ASCII value.

How to find the ASCII value of an element ?
Asked by: ashoksurati | Member Since Apr-2008 | Asked on: Apr 12th, 2008

View all questions by ashoksurati   View all answers by ashoksurati

Showing Answers 1 - 2 of 2 Answers

try this code:
#include<stdio.h>
#include<conio.h>
main()
{
    char a;
    clrscr();
    puts("Enter a character:");
    a=getchar();
    printf("nnThe ascii code of %c is %d",a,a);
    getch();
}

Yes  1 User has rated as useful.
  
Login to rate this answer.
anujpaliwal

Answered On : Feb 3rd, 2009

View all answers by anujpaliwal

main()
{
 char ch='+';
 printf("%d",ch);
 }

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.