int alloc_size = 10; int* buffer = (int*) malloc (alloc_size); //Allocate memory block which can fit 10 integers