Write a complete C program that will prompt the user to enter an ASCII printable character (note
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a complete C program that will prompt the user to enter an ASCII printable character (note the decimal range should be between 0 and 127, inclusively) and then print out its decimal, hexadecimal, and binary representation. You may assume that the user enters a valid ASCII printable character when prompted.
SAMPLE OUTPUT:
Enter an ASCII character: A
The ASCII value of A is: 65 (dec) -- 41 (hex) -- 01000001 (bin)
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: