From 26ca144e3ec259539b3a1efbcddfd7aa3b76e41c Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 9 Mar 2015 20:56:00 +0100 Subject: [PATCH] update --- .../exercise2 | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ass5b/mart/sws1-assignment5b-s4109503-s4202015/exercise2 diff --git a/ass5b/mart/sws1-assignment5b-s4109503-s4202015/exercise2 b/ass5b/mart/sws1-assignment5b-s4109503-s4202015/exercise2 new file mode 100644 index 0000000..a07cb46 --- /dev/null +++ b/ass5b/mart/sws1-assignment5b-s4109503-s4202015/exercise2 @@ -0,0 +1,33 @@ +a. The buffer is 104 characters long. When you input 105 a's the last a will +be garbled. + +b. "%lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx" +The memory outputted is this: +7ffff7ff80d0 +7ffff7dd8de0 +fbad2088 +786c2520786c2520 +786c2520786c2520 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +20786c2520786c25 +786c2520786c25 +7fffffffeb40 +7fffffffebd0 +4006a9 +0 +100400530 +7fffffffebe0 +4006c2 +0 + +c. -- 2.20.1