Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Apple Xcode
- // paulogp
- /* ASCII table */
- // main.c
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main (int argc, const char * argv[]) {
- // ascii
- // this will print the character value of that number (ASCII)
- // M1: convert inside print
- // M2: convert before print
- char the_c_val;
- for (int the_ascii_val = 48; the_ascii_val <= 90; the_ascii_val++) {
- the_c_val = (char)the_ascii_val;
- printf("%i - M1: %c M2: %c\n", the_ascii_val, the_ascii_val, the_c_val);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement