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 |
How many identifiers are there in c?
How can I convert integers to binary or hexadecimal?
write a c program for swapping two strings using pointer
I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be int or float etc. Does this statement meaningful and where it can be used?
How can I increase the allowable number of simultaneously open files?
How will you delete a node in DLL?
To what value do nonglobal variables default? 1) auto 2) register 3) static
Tell me about low level programming languages.
define switch statement?
How variables are declared in c?
What are data structures in c and how to use them?
#include<stdio.h> void main() { int a,b,c; a=b=c=1; c=++a || ++b && ++c; printf("%d\t%d\t%d",a,b,c); }