wrote:
> On Sep 22, 4:02 pm, vineet <vinsha...@gmail.com> wrote:
>> Hi,
>> To make data aligned to memory boundry, compiler pedded some byte. I
>> wanted to know if these bytes are initialized? or compiler pedded some
>> un initialized byte.
>>
>> Thanks,
>
> I think it is depends upon which part of the memory data sits - stack,
> heap, initialized DS, Uninitialized DS
>
>
> - nOby jOse
Also some compilers (e.g. intel) has compiler flags such as
'-no-bss-init' to allow finer control of memory initialization. Really,
the answer is platform-compiler dependent and has not much to do with C++.