Category "calloc"

Allocate memory for big .txt file in C

I need to allocate memory using malloc or calloc, for a large file that looks like this: 2357 VKLYKK 7947 1WTFWZ 3102 F2IXK3 2963 EXMW55 2865 50CJES 2510 8PC1AI

What happens if I set a value outside of the memory allocated with calloc?

Consider the following: int* x = calloc(3,sizeof(int)); x[3] = 100; which is located inside of a function. I get no error when I compile and run the progra