I know that the size of the structure is known at compile time, so when programming it should be possible to find the size of the structure. How can i do this?
More specific:
I have a structure:
struct mystruct
{
int a;
char b;
float c[100];
}
I can write this line in my code and run the application and see the size of this structure:
int size=sizeof(mystruct);
cout<<"size is="<<size<<endl;
But this is due to adding a little code to my application and its launch.
Is there a way that the Visual Studio IDE can help me find the size of this structure (for example, by hovering over it and pressing a key!)
source
share