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 meant by gets in c?

1180


Write a code of a general series where the next element is the sum of last k terms.

1037


Explain high-order bytes.

1114


can anyone please tell about the nested interrupts?

2113


What is the best organizational structure?

1119


Is multithreading possible in c?

1008


What is a good way to implement complex numbers in c?

1049


Can we access the array using a pointer in c language?

1047


What is the difference between the expression “++a” and “a++”?

1231


How are portions of a program disabled in demo versions?

1293


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1586


how can f be used for both float and double arguments in printf? Are not they different types?

1066


What is the 'named constructor idiom'?

1085


Dont ansi function prototypes render lint obsolete?

1124


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4265