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
What is a header file?
difference between native and cross compilers
What is f'n in math?
Is c compiled or interpreted?
How can you check to see whether a symbol is defined?
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
What is the difference between the local variable and global variable in c?
Explain the difference between getch() and getche() in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is p in text message?
what is bit rate & baud rate? plz give wave forms
Is a pointer a kind of array?
What is meant by int main ()?
What are conditional operators in C?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none