WAP to convert text into its ASCII Code and also write a
function to decode the text given?
Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of void in c?
How can a program be made to print the line number where an error occurs?
What is identifiers in c with examples?
Differentiate between calloc and malloc.
What is the advantage of c?
Is null always equal to 0(zero)?
What is cohesion in c?
Do character constants represent numerical values?
how could explain about job profile
Explain how do you list files in a directory?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Explain what is a pragma?
What is %g in c?
What is the use of ?: Operator?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.