Your technology certification is waiting. Enroll in Cloud Class ®
Be seen. Boost your question’s priority for more expert views and faster solutions
unsigned short asciiValue = 0;
printf("Enter an alphabet :");
asciiValue = (unsigned short) alpha; //Cast required (converts one type to another)
printf("\n Ascii value of %c is %d \n",alpha, asciiValue);
/* Revrse what you have done */
c = (char ) asciiValue; // Cast required
printf("\n The number %d represents the %c alpha in ascii table \n", asciiValue, c);
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.