I tried to reproduce your problem with the code you pointed to above and the only warnings/errors I got related to not finding printf() because #include "mbed.h" was missing and the fact that the method was supposed to return a char* but had no return statement.
My version can be found here:
Edit: Removed program that is no longer published.
I tried to reproduce your problem with the code you pointed to above and the only warnings/errors I got related to not finding printf() because #include "mbed.h" was missing and the fact that the method was supposed to return a char* but had no return statement.
My version can be found here:
Edit: Removed program that is no longer published.
someStruct is a type whereas sS is just an instance of that type.
.
<<code>>
printf( "%d\n", sizeof( sS ) );
<</code>>
First up, **sS** is a private. Try:-
<<code>>
printf( "%d\n", sizeof( someStruct ) );
<</code>>
Edit: Think **sizeof( int )** where **int** is a type.
**someStruct** is a type whereas **sS** is just an instance of that type.
.
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Solved.