--- In [email protected], "David Hamill" <[EMAIL PROTECTED]> wrote: > > Use sizeof. That's what it's there for! > > Bearing in mind that structs often incorporate padding, it's > not easy to find their size. I suppose you could initialise > an area of memory to 0x00, write a struct over it, and see > which bytes contain bits that have changed; then do the same > but initialising to 0xff; then deduce the size of the struct > from the results. But it's much easier and more reliable to > use sizeof. > > David > can u give plz me code to implement this..
- [c-prog] how to find size without using sizeof?? una_020
- Re: [c-prog] how to find size without using sizeof?? David Hamill
- [c-prog] Re: how to find size without using sizeo... una_020
- [c-prog] Re: how to find size without using sizeo... una_020
- [c-prog] Re: how to find size without using s... peternilsson42
- [c-prog] Re: how to find size without using sizeof?? John Matthews
- Re: [c-prog] Re: how to find size without using s... David Hamill
- [c-prog] Re: how to find size without using sizeo... una_020
- [c-prog] Re: how to find size without using s... John Matthews
- Re: [c-prog] Re: how to find size without usi... David Hamill
- Re: [c-prog] how to find size without using sizeof?? Rajath N R
- Re: [c-forum] Re: [c-prog] how to find size witho... Ganesh Kundapur
