What is the value of an uninitialized string in c? [duplicate]

10 bytes are allocated on the stack, that’s all. Their value is left as is, that means it is what ever had been written to such 10 bytes before having been allocated.

Leave a Comment