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 is Array?
How can variables be characterized?
What are local static variables?
difference between c and c++
Why dont c comments nest?
What is the difference between fread and fwrite function?
Differentiate between a structure and a union.
What is the Lvalue and Rvalue?
What are multibyte characters?
What is extern variable in c with example?
How to write a multi-statement macro?
How to print "Hi World" without using semi colon?