program to find the ASCII value of a number

Answer Posted / dhinakar

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

void main()
{
char num;
printf("Enter the number");
scanf("%c",&num);
printf("ASCII of %d is %d\n",atoi(&num),num);

}

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

pierrot's divisor program using c or c++ code

1991


When a c file is executed there are many files that are automatically opened what are they files?

853


What are file streams?

800


What are the 4 data types?

807


What are keywords in c with examples?

860


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

901


How can I handle floating-point exceptions gracefully?

904


write a progrmm in c language take user interface generate table using for loop?

1826


What is a memory leak? How to avoid it?

932


What is printf () in c?

812


What is binary tree in c?

879


How can I generate floating-point random numbers?

831


When should a type cast not be used?

859


Multiply an Integer Number by 2 Without Using Multiplication Operator

572


Is calloc better than malloc?

810