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.
More Related Contents:
- Procedure to include own functions to ANSI C Standard library
- How to allocate an array with NULL [closed]
- sscanf Beginner in C
- Sum of the all the numbers between a and b [closed]
- Returning an array using C
- C loop optimization help for final assignment (with compiler optimization disabled)
- Why use double indirection? or Why use pointers to pointers?
- Is there a performance difference between i++ and ++i in C?
- Effects of the extern keyword on C functions
- Overriding ‘malloc’ using the LD_PRELOAD mechanism
- Type conversion – unsigned to signed int/char
- Rounding integer division (instead of truncating)
- Fast computing of log2 for 64-bit integers
- How undefined is undefined behavior?
- Does the C preprocessor strip comments or expand macros first? [duplicate]
- How to set the name of a thread in Linux pthreads?
- Use of cudamalloc(). Why the double pointer?
- Implementation of nested functions
- Fastest way to calculate a 128-bit integer modulo a 64-bit integer
- why is -1>strlen(t) true in C? [duplicate]
- C char array initialization: what happens if there are less characters in the string literal than the array size?
- Casting one C structure into another
- Heap allocate a 2D array (not array of pointers)
- How is sleep implemented at the OS level?
- Dynamic array using ANSI C
- What does (void)var actually do?
- Is memset(&mystruct, 0, sizeof mystruct) same as mystruct = { 0 };?
- How to avoid long chain of free’s (or deletes) after every error check in C?
- Creating an MPI_Datatype for a structure containing pointers
- passing a struct over TCP (SOCK_STREAM) socket in C