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


Please Help Members By Posting Answers For Below Questions

What is the purpose of void in c?

787


How can a program be made to print the line number where an error occurs?

857


What is identifiers in c with examples?

862


Differentiate between calloc and malloc.

990


What is the advantage of c?

791


Is null always equal to 0(zero)?

782


What is cohesion in c?

733


Do character constants represent numerical values?

1059


how could explain about job profile

1637


Explain how do you list files in a directory?

819


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);

1567


Explain what is a pragma?

784


What is %g in c?

822


What is the use of ?: Operator?

884


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 “****”.

2910