WAP to convert text into its ASCII Code and also write a
function to decode the text given?
Answers were Sorted based on User's Feedback
Answer / harish solanki
#include<stdio.h>
#include<conio.h>
void main()
{
char c,d;
int a;
clrscr();
printf("enter character");
scanf("%c",&c);
a=c;
d=a;
printf("the ascii code is:%d",a);
printf("the character is:%c",d);
getch();
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / shashank mahabdi
to convert it into ascii code just assign the entered
variable to a int(integer)variabe e.g.
int i=a
which on printing i will gie 64 as the o/p
| Is This Answer Correct ? | 1 Yes | 6 No |
What does s c mean in text?
What is #define?
What is meant by 'bit masking'?
What is difference between union and structure in c?
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
what is the difference between while and do while?
hi, which software companys will take,if d candidate's % is jst 55%?
In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a
What is #include stdio h and #include conio h?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Why C language is a procedural language?