I know that the size of a structure is known at compile time, so it should be possible to find the size of a structure during programming. How can I do this?
To be more specific:
I have a structure say:
struct mystruct
{
int a;
char b;
float c[100];
}
I can write this line in my code and run application and see the size of this structure:
int size=sizeof(mystruct);
cout<<"size is="<<size<<endl;
But this involves adding a bit of code to my application and running it.
Is there any way that Visual Studio IDE can help me to find what is the size of this structure (for example by putting my cursor on it and pressing a key!)