Mega Code Archive
Categories
/
C
/
Memory
Allocate memory
#include
#include
int main() { float *p; p = calloc(100, sizeof(float)); if(!p) { printf("Allocation Error\n"); exit(1); } return 0; }