Is struct better than class C++?

7 Answers. On runtime level there is no difference between structs and classes in C++ at all . So it doesn’t make any performance difference whether you use struct A or class A in your code.

Sizin İçin Seçtik  What degree do you need for software developer?

Leave a Reply

Your email address will not be published. Required fields are marked *