Write a program to accept a character & display its
corrosponding ASCII value & vice versa?

Answer Posted / priya.m

#include<iostream.h>
#include<conio.h>
void main()
char c;
int a;
clrscr();
cout<<"enter any word"<<photo;
cin>>c;
a=c;
cout<"corresponding ASCII is"<<a;
getch();
}

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a header file?

793


difference between native and cross compilers

1826


What is f'n in math?

798


Is c compiled or interpreted?

847


How can you check to see whether a symbol is defined?

775






c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

785


What is the difference between the local variable and global variable in c?

690


Explain the difference between getch() and getche() in c?

712


Using which language Test cases are added in .ptu file of RTRT unit testing???

3927


What is p in text message?

712


what is bit rate & baud rate? plz give wave forms

1692


Is a pointer a kind of array?

783


What is meant by int main ()?

902


What are conditional operators in C?

781


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

799