Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


Write a program to accept a character & display its
corrosponding ASCII value & vice versa?

Answers were Sorted based on User's Feedback



Write a program to accept a character & display its corrosponding ASCII value & vice versa..

Answer / govindkrishna

#include<stdio.h>
#include<conio.h>
main()
{
char ch;
printf("enter any charecter %c /n");
scanf("%c ",&ch);
printf("the ACSCII value is %d= /n",ch);
}

Is This Answer Correct ?    61 Yes 30 No

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

Answer / priya

Can any one tell me the answer....
if any one knows the answer pls mail the answer at this id
plsss
priya_del06@yahoo.com

Is This Answer Correct ?    33 Yes 16 No

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

Answer / rukmanee

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\n enter a character :");
scanf("%c",&ch);
printf("the corresponding ascii value of the given
character is %d",ch);
getch();
}

Is This Answer Correct ?    31 Yes 17 No

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

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

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

Answer / sanjay malik

#include<stdio.h>
main()
{
char ch;
printf("ENTER A CHARACTER: ");
scanf("%c",&ch);
printf("THE ASCII CODE IS %d",ch);}

Is This Answer Correct ?    0 Yes 1 No

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

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

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

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

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

Answer / nigus alene

#2 is correct.

Is This Answer Correct ?    10 Yes 18 No

Write a program to accept a character & display its corrosponding ASCII value & vice versa..

Answer / ashokan m

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

Is This Answer Correct ?    38 Yes 52 No

Post New Answer



More C Interview Questions

What is the difference between array and linked list in c?

0 Answers  


How will you allocate memory to double a pointer?

1 Answers  


What is a loop?

0 Answers  


what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>

5 Answers   TCS,


What is the main difference between calloc () and malloc ()?

0 Answers  






Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


What is the process to create increment and decrement stamen in c?

0 Answers  


Why c is called procedure oriented language?

0 Answers  


When should the volatile modifier be used?

0 Answers  


what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


main() { printf("hello"); fork(); }

0 Answers   Wilco,


What does 1f stand for?

0 Answers  






Categories