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 |
If the static variable is declared as global, will it be same as extern?
what type of questions arrive in interview over c programming?
Are comments included during the compilation stage and placed in the EXE file as well?
Without using main fn and semicolon,print remainder for a given number in C language
Is c is a middle level language?
Can the size of an array be declared at runtime?
Why is a semicolon (;) put at the end of every program statement?
write a program fibonacci series and palindrome program in c
0 Answers Aditi Placement Service,
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What is period operator in c?
how to find a 5th bit is set in c program
write a program to find lcm and hcf of two numbers??