From ef4f5e3614fc9afbf4dd15c44d59d9535f43b290 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 4 Jun 2022 18:57:14 +0530 Subject: add 3.5 --- 3.4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '3.4.c') diff --git a/3.4.c b/3.4.c index d4a1c9a..5c75d03 100644 --- a/3.4.c +++ b/3.4.c @@ -38,7 +38,7 @@ itoa(int n, char str[]) { int sign, i; - /* to include the most -ve int*/ + /* to include the most -ve int */ n = ((sign = n) < 0) ? -(n+1) : n-1; i = 0; @@ -49,6 +49,7 @@ itoa(int n, char str[]) if (sign <0) str[i++] = '-'; + /* part of "to include the most -ve int" */ str[0] += 1; str[i] = '\0'; -- cgit v1.2.3