Question: 5. [15 points] Consider the following program. Assume normal sizes for the different types, so an int is 4 bytes and a char is 1

 5. [15 points] Consider the following program. Assume normal sizes for

5. [15 points] Consider the following program. Assume normal sizes for the different types, so an int is 4 bytes and a char is 1 byte. Assume signed values are represented using two's- complement encoding. #include int main() { int a = 0; char *s_ptr (char *)&a; scanf("%s", suptr); printf("a %d ", a); return 0; } Write down the needed input to be sent to scanf so that the calls to print output: a = 29539 The input is: 04 eot 0 05 eng Od cr 15 nak 1d gs IT 20 SP 32 ASCII hexadecimal set: 00 nul 01 soh 08 bs 09 ht 10 dle 11 dcl 18 can 19 em 21 ! 28 ( 29 ) 30 0 31 1 38 8 39 9 40 @ 41 A 48 H 49 I 50 P 51 Q X 59 Y 60 61 a 68 h 69 i 70 P 71 9 78 79 Y 5 02 stx Oa nl 12 dc2 la sub 22 2a * 2 3a : 42 B 4a J 52 R 5a Z 62 b 72 r 03 etx Ob vt 13 dc3 1b esc 23 # 2b + 33 3 3b i 43 4b K 53 S 5b [ 63 6b k 73 S 7b 14 dc4 1c fs 24 $ 2c 34 4 3c 44 4c 54 VAH 25 2d 35 3d 45 4d 55 5d 65 6d 75 7d 06 ack De so 16 syn le rs 26 & 2e 36 6 3e 46 F 4e N 56 V 5e 66 f n 76 V 07 bel Of si 17 etb 1f us 27 2f / 37 7 3f ? 47 G 4f o 57 W 5f 67 6f 77 7f del E M U 1 | d 1 t 1 2. u } 7e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!