What is structure give C++ program example?

Structure is a collection of variables of different data types under a single name . It is similar to a class in that, both holds a collecion of data of different data types. For example: You want to store some information about a person: his/her name, citizenship number and salary.

Sizin İçin Seçtik  Does C++ support multiple inheritance?

Leave a Reply

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