Can objects be used in arrays C++?

You can store objects of user defined datatype in a C++ Array . To store objects of user defined datatype in an array, you can declare an array of the specific type and initialize the array just like an array of ints.

Sizin İçin Seçtik  How do you initialize an object?

Leave a Reply

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

Can objects be used in arrays C++?

You can store objects of user defined datatype in a C++ Array . To store objects of user defined datatype in an array, you can declare an array of the specific type and initialize the array just like an array of ints.

Sizin İçin Seçtik  Iktisat bilimi nasıl ortaya çıkmıştır?

Leave a Reply

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