Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
Total of how many functions are available in c?
How many types of errors are there in c language? Explain
What is #error and use of it?
Why do we use null pointer?
What are the 5 data types?
What is operator promotion?
What is enumerated data type in c?
How to add two numbers with using function?
without using arithmatic operator convert an intger variable x into x+1
Is the exit() function same as the return statement? Explain.
0 Answers Agilent, ZS Associates,