Problems 13
  1. Theory.
    1. Will the following function leak memory?
      double bar(int n){
      	double* x = (double*)malloc(n*sizeof(double));
      	/* do staff with x */
      	return x[0];
      	free(x);
      }
      
  2. Practice.
    1. Debug somebody else's project here.
      • Assume that the assignment was the following: "build a function that prints half the [0,0] element of a given matrix".
      • You shouldn't rewrite the code, you should only correct the errors --- if any --- in the Makefile and the code.