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 merge sort in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Why is event driven programming or procedural programming, better within specific scenario?
Do array subscripts always start with zero?
What is a structural principle?
What is a global variable in c?
What are the advantages of using new operator as compared to the function malloc ()?
What is pointers in c with example?
Difference between Function to pointer and pointer to function
Disadvantages of C language.
What are lookup tables in c?
What is formal argument?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Why void main is used in c?