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

What is masking?

909


What are operators in c?

790


How can I avoid the abort, retry, fail messages?

874


Write a program to print fibonacci series using recursion?

839


What is an lvalue in c?

897


What functions are used for dynamic memory allocation in c language?

868


Explain how do you list files in a directory?

832


What language is lisp written in?

868


what is the role you expect in software industry?

1892


What are the different types of pointers used in c language?

798


Why main is used in c?

832


what are the advantages of a macro over a function?

890


What is a char in c?

765


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

873


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2514