summaryrefslogtreecommitdiffstats
path: root/3
diff options
context:
space:
mode:
Diffstat (limited to '3')
-rw-r--r--3/4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/3/4.c b/3/4.c
index 1ec8d15..4749fde 100644
--- a/3/4.c
+++ b/3/4.c
@@ -5,6 +5,10 @@
#define MAXLEN 50
+// Explanation of the error:
+// In itoa, for largest negative number, n = -n overflows
+// resulting in n = INT_MIN (wraps around) causing a god awful mess.
+
void itoa(int n, char s[]);
void reverse(char s[]);