Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / pansare sandeep
#include <iostream.h>
#include<conio.h>
void main()
{
char c;
int d;
clrscr();
cout<<"Enter any key"<<endl;
cin>>c;
d=c;
cout<<"Corresponding ascii is "<<d;
getch();
}
| Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
Which is better oop or procedural?
Write a program to use switch statement.
Describe newline escape sequence with a sample program?
Explain high-order bytes.
What is new line escape sequence?
What is meant by keywords in c?
Is array a primitive data type in c?
Why do we use int main instead of void main in c?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What library is sizeof in c?
What is a nested formula?
Write a program to reverse a linked list in c.
Why does the call char scanf work?
Is it fine to write void main () or main () in c?
What is getche() function?