From 81ce41f11275ce4d72e0c6660f95dc03672fa406 Mon Sep 17 00:00:00 2001 From: e12269 Date: Tue, 21 Jun 2016 21:34:49 +0530 Subject: [PATCH 1/3] fix bug : array size --- corrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corrupt.c b/corrupt.c index 44618d7..0874389 100644 --- a/corrupt.c +++ b/corrupt.c @@ -15,7 +15,7 @@ int main(){ int i; - char string[42] = "Brace your self, CO328 project is coming!!"; + char string[43] = "Brace your self, CO328 project is coming!!"; int j; return 0; From 3da8e568f5976fed7fd603ccc1c505fe2800c1b8 Mon Sep 17 00:00:00 2001 From: e12269 Date: Tue, 21 Jun 2016 21:41:47 +0530 Subject: [PATCH 2/3] bug fix: less than operator --- min.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/min.c b/min.c index e24e74d..a8b77fe 100644 --- a/min.c +++ b/min.c @@ -14,7 +14,7 @@ int getMin(int *Array, int n) { int currmin = MAXINT; for (int i=0; i currmin) + if (Array[i] < currmin) currmin = Array[i]; return currmin; From 8f52ace27d9c6ac5c2aa2023b1f1edc772123235 Mon Sep 17 00:00:00 2001 From: e12269 Date: Tue, 21 Jun 2016 21:42:33 +0530 Subject: [PATCH 3/3] bug fix: inverted commas --- numbers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numbers.c b/numbers.c index 9d42c01..4b01963 100644 --- a/numbers.c +++ b/numbers.c @@ -12,7 +12,7 @@ int main(){ int x; for(x=43; x<12423; x++); - printf('x = %d \n', x); + printf("x = %d \n", x); return 0; }