Plzz provide the code for array of pair as given in your codes input dicsussed in this lesson

plzz provide the code for array of pair as given in your codes input dicsussed in this lesson .

@Ayushmahajan513
hello ayush,
you can declare array of pair as.

pair< datatype , datatype > p[size];

and then for acessing pair at index i u can use indexing p[i]

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.