Allocate memory
#include <stdlib.h> #include <stdio.h> int main() { float *p; p = calloc(100, sizeof(float)); if(!p) { printf("Allocation Error\n"); exit(1); } return 0; }