Pergunta de entrevista da empresa Cisco

How would you find size of structure without using sizeof operator?

Resposta da entrevista

Sigiloso

18 de ago. de 2009

This question emphasizes the use of pointers. If you assign a pointer to structure and increment it, the address would be incremented based on size of structure. Hence subtract the incremented pointer from original one.