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 / pawankumar

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int x;
char y;
printf("enter the number");
scanf("%d",&x);
printf("enter the char");
scanf(" %c",&y);
if(sizeof(x)==4)
{
printf("the equivalent char for given
integer is %c ",x);
}
if(sizeof(y)==1)
{
printf("the equivalent integer for given
char is %d ",y);
}

}

Is This Answer Correct ?    8 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between call by value and call by reference in c language?

1053


Differentiate between functions getch() and getche().

988


hi, which software companys will take,if d candidate's % is jst 55%?

2047


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2121


What is the use of pragma in embedded c?

1003


What is pointer to pointer in c language?

1050


What is the use of f in c?

934


formula to convert 2500mmh2o into m3/hr

941


How can I do peek and poke in c?

1038


Differentiate between the expression “++a” and “a++”?

1203


What does sizeof return c?

1012


what are non standard function in c

1849


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1169


What are pointers? Why are they used?

1113


What is volatile c?

959