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 bss in c?
What is the translation phases used in c language?
Explain the difference between structs and unions in c?
Can we declare a function inside a function in c?
What is a macro in c preprocessor?
Why do we use static in c?
What is difference between array and structure in c?
What is a dynamic array in c?
How do I read the arrow keys? What about function keys?
What is function what are the types of function?
How main function is called in c?
Can a local variable be volatile in c?
What is #define?
Write the Program to reverse a string using pointers.
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above