, undefined , , , ASCII, . - for calloc, , 0.
for (i = 0; i < 100; i++) literal[i] = '\0';
OR
char *literalPtr = (char*)calloc(100, sizeof(char)); // Array of 99 elements plus 1 for '\0'
There is no guarantee. Therefore, it will be classified as undefined behavior, since it depends on the compiler implementation and execution.
Hope this helps, Regards, Tom.
source
share