Here , sizeof buffer is equivalent to 10 * sizeof buffer ( 0 ) , which evaluates to 10 .
The size of the type char is defined as 1 .
Here , sizeof buffer is equivalent to 10 * sizeof buffer ( 0 ) , which evaluates to 10 , because the size of the type char is defined as 1 .