Which data type should be used in c++ to store address because address consists of both integers and characters
-
You basically answered your own question. If you need to save something that is a mixture of numbers and characters, I see two obvious choices:
You just need it as a text: I would go with a simple std::string
You need the individual elements (e.g. street name, street number): define a custom struct, e.g.
struct Address { std::string street_name; int house_number = -1; };