Loading...
Engaged Employer
how do you implement a sizeof operator without using the sizeof operator
Anonymous
#define my_sizeof(t) (((t *) 0) + 1)
To find the size of a of type tStruct; tStruct *pstruct1 = &structobj; tStruct * pstruct2 = ++pstruct1 ; int size = (char*)pstruct2 - (char*)pstruct1;
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.