Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which is better oop or procedural?

1004


Write a program to use switch statement.

1088


Describe newline escape sequence with a sample program?

1078


Explain high-order bytes.

1074


What is new line escape sequence?

1277


What is meant by keywords in c?

1040


Is array a primitive data type in c?

1010


Why do we use int main instead of void main in c?

1109


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1341


What library is sizeof in c?

1046


What is a nested formula?

1070


Write a program to reverse a linked list in c.

1078


Why does the call char scanf work?

1168


Is it fine to write void main () or main () in c?

978


What is getche() function?

994