Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 2: ASCII Each character is stored in the computer using its Ascii code, the following tables gives the Ascii code for the main characters.
Part 2: ASCII Each character is stored in the computer using its Ascii code, the following tables gives the Ascii code for the main characters. Study this table and answer the exercises below: Classwork_2.1: To check the ascii code for any character, we can print the character as an int as shown in the example below: # #include int main() { char var1 = 'A'; 8. A j printf("the variable var1 can be displayed as a char using %c ",var1); printf("the Asci code for var1 is %d", varl); 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 ASCII printable characters space 64 96 ! 65 A 97 66 B 98 67 99 $ 68 D 100 % 69 E 101 & 70 F 102 71 G 103 72 H 104 ) 73 105 74 J 106 75 K 107 76 L 108 77 M 109 78 N 110 79 111 80 P 112 1 81 113 2 82 R 114 3 83 115 4 84 T 116 5 85 U 6 86 V 118 7 87 w 119 8 88 120 9 89 121 90 Z 122 91 [ 123 92 1 124 93 125 94 A 126 ? 95 AUDDOS-X-ECOGOMB>XNW return 0; } 117 . ONOVIA Output: { 1 }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started