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 is the difference between #include <header file> and #include “header file”?
Is void a keyword in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is wild pointer in c?
Program to find largest of three numbers without using comparsion operator?
Is it possible to create recycle bin in mobiles?
In c language can we compile a program without main() function?
How can I read a binary data file properly?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
what is the use of c program?
4 Answers Synergy, Web Synergies,
How many types of errors are there in c language? Explain
How can you increase the size of a dynamically allocated array?