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
How can a process change an environment variable in its caller?
Explain what standard functions are available to manipulate strings?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is the difference between #include and #include 'file' ?
Are the expressions * ptr ++ and ++ * ptr same?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Write a program to check armstrong number in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
How will you declare an array of three function pointers where each function receives two ints and returns a float?
is it possible to create your own header files?
Tell me what is null pointer in c?
Write a program to find factorial of a number using recursive function.
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Does * p ++ increment p or what it points to?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.