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 |
What does == mean in texting?
What are dangling pointers?
What are the different types of linkage exist in c?
What is volatile c?
please give me some tips for the placement in the TCS.
Is c call by value?
Diff between for loop and while loop?
main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }
What does void main () mean?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Are pointers integers in c?
write a program that accepts 3 numbers from the user. dispaly the values in a descending order.