I didn’t get the pair part in this video, could you please explain what is the pair array.
I didn't get the pair part in this video
The pair container is a simple container consisting of two data elements or objects. For eg: Suppose you have some data, which has some key value for it. Eg: Item and prices, like
Coke - Rs 150
Sandwich - Rs 120
Maggie - Rs 100
As you can see in this each item has some value for it. So to make them as a single unit. We use pair . so that we can treat them as a single unit.
pair (data_type1, data_type2) Pair_name
If have any other doubts, feel free to ask.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.