Pergunta de entrevista da empresa Honeywell

Size of the struct without using sizeof operator

Resposta da entrevista

Sigiloso

25 de ago. de 2016

#include struct { int n1,n2; }a[2]; void main() { int start,last; start = &a[1].n1; last = &a[0].n1; printf("\nSize of Structure : %d Bytes",start-last); }