New course! Every coder should learn Generative AI!
Try a free lesson+ 2
What is the size of class?
just an class without any members and methods.
1 Answer
+ 1
Use sizeof. For example, if you have a class named Foo, just use sizeof(Foo) will get the size of the class.