diff --git a/09-go-type-system/questions/01-questions-predeclared-types.md b/09-go-type-system/questions/01-questions-predeclared-types.md index 79e9468..b68007a 100644 --- a/09-go-type-system/questions/01-questions-predeclared-types.md +++ b/09-go-type-system/questions/01-questions-predeclared-types.md @@ -35,14 +35,14 @@ 5. 64 -## What's the output of following code? +## What's the output of the following code? ```go fmt.Printf("%08b = %d", 2, 2) ``` -1. 00000001 -2. 00000010 *CORRECT* -3. 00000100 -4. 00001000 +1. 00000001 = 2 +2. 00000010 = 2 *CORRECT* +3. 00000100 = 2 +4. 00001000 = 2 > EXPLANATION = From right to left, each bit goes from 2^0 to 2^(n - 1). @@ -133,4 +133,4 @@ fmt.Print(num - 3) > **1:** int8's min capacity is -128. It can't be -131. > > **2:** Signed integers wrap around after their minimum capacity. int8's min is -128, so, if -128 - 1 is 127, then -128 - 3 is 125. -> \ No newline at end of file +>