Why size of an empty class is 1 whereas size of an empty structure is 0? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Why size of an empty class is 1 whereas size of an empty structure is 0?

24th Sep 2017, 5:50 AM
Priyank Rathi
Priyank Rathi - avatar
2 Respuestas
0
because class contains default constructor but structure don't
27th Sep 2017, 8:05 AM
sanjay s
sanjay s - avatar
0
Its still not clear. Please brief me more..
28th Sep 2017, 1:50 AM
Priyank Rathi
Priyank Rathi - avatar