WAP to convert text into its ASCII Code and also write a function to decode the text given?
#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(); }