Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions corrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ int main(){


int i;
char string[42] = "Brace your self, CO328 project is coming!!";
char string[] = "Brace your self, CO328 project is coming!!";
int j;

return 0;
}
12 changes: 9 additions & 3 deletions min.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@
* @param int* A pointeer to an integer array
* @param int n number of elements in the array
*/

#define MAXINT 100

int getMin(int *Array, int n) {

//this is a useless comment
int currmin = MAXINT;
int currmin = MAXINT,i;

for (int i=0; i<n; i++)
if (Array[i] > currmin)
for (i=0; i<n; i++)
if (Array[i] < currmin)
currmin = Array[i];
return currmin;

}

int main(){

return 0;
}

2 changes: 1 addition & 1 deletion numbers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
7 changes: 6 additions & 1 deletion theta.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Am I making a mistake? You tell me.
*/


#include<stdlib.h>

char * giveMeSomeMemory ( int size ){
char * str ;
Expand All @@ -18,3 +18,8 @@ char * giveMeSomeMemory ( int size ){
return NULL ;
return ( str );
}

int main(){

return 0;
}