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 / 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 bss in c?

1053


What is the translation phases used in c language?

1074


Explain the difference between structs and unions in c?

969


Can we declare a function inside a function in c?

997


What is a macro in c preprocessor?

1064


Why do we use static in c?

1075


What is difference between array and structure in c?

1108


What is a dynamic array in c?

1086


How do I read the arrow keys? What about function keys?

1028


What is function what are the types of function?

955


How main function is called in c?

1081


Can a local variable be volatile in c?

952


What is #define?

1051


Write the Program to reverse a string using pointers.

979


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

1169