C - Trying to do bubble sort : I think this is C. but trying to figure out why my bubble sort isn't working. I was following an existing example so perhaps my integration with this code isn't right but not too sure. 

    #include <stdio.h>
    #include <stdlib.h>

    int main(int argc, char *argv[]) 
    {
	  if (argc != 2) {
		printf("%s <student-id>\n", argv[0]);
		exit(0);
	}

	int i;
	int size = 10000;
	int seed = atoi(argv[1]); 

	srand(seed % 4);
	
	int *int_array = malloc(sizeof(int)*size);
	for (i = 0; i < size; i++)
	{
		int_array[i] = rand();
	}

    // This part
	int j;
	for (i = 0; i < size; i += 1) {
		for (j = i - 1; j >= 0 && int_array[j] > int_array[j + 1]; j+= 1) {
			swap(int_array,j);
		}
	]


	int failed = 0;
	for (i = 0; i < size; i++)
	{
		if (int_array[i] < int_array[i+1])
		{
			failed = 1;
			break;
		}
	}

	free(int_array);

	return 0;
    }