Finding the sizes of all structures in a header file without instantiating
Hi to all,
I am new to this forum and will like to introduce myself. I am a software engineer but new to programming.
I have a programming problem to solve.
I have a project that contains a header file in which there are around 1000 structures. I need to calculate the sizes of all the structures in a single go and without instantiating any structure. I know 'sizeof' operator is used to find the size of a data type but I need to find the sizes of all the structures programatically using 'sizeof' of course. I need to save this data in a new file.
Thanks a lot.