From bac6a1901c2eaec018bbfbd6b50b352b587a178f Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 7 Oct 2021 21:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0toobig.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chapter3/toobig.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 chapter3/toobig.c diff --git a/chapter3/toobig.c b/chapter3/toobig.c new file mode 100644 index 0000000..7ccd3da --- /dev/null +++ b/chapter3/toobig.c @@ -0,0 +1,11 @@ +#include + +int main(int argc, char const *argv[]) +{ + int i = 2147483647; + unsigned int j = 4294967295; + printf("%d %d %d\n", i, i+1, i+2); + printf("%u %u %u\n", j, j+1, j+2); + + return 0; +}