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 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does return 1 means in c?

824


What is the difference between a free-standing and a hosted environment?

913


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

2011


In c programming language, how many parameters can be passed to a function ?

880


What is meant by keywords in c?

852


How can you increase the size of a statically allocated array?

859


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

810


Which built-in library function can be used to match a patter from the string?

1010


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1735


What type of function is main ()?

818


What is the use of #define preprocessor in c?

841


Explain what is the difference between #include and #include 'file' ?

802


Are negative numbers true in c?

787


c language interview questions & answer

1715


what will be maximum number of comparisons when number of elements are given?

1673