QUESTION DOUBT . . .

In this lecture ,pateek bhaiya had declared an array using

pair<string,string> prstr[100]??

WHat does it mean?
I only know the simple array declarartion?

@CODER_JATIN look at its type its pair<string, string>
so it means that it is an array of pairs. The pairs consist of {string, string}.
for example:
[{"p1 str1", "p2 str2"}, {"p2 str1", "p2 str2"}, {"p3 str1", "p3 str2"}];

Ohk, This is special type of array what we declared in c++? , because bhaiya had just use it in the problem but he didn’t explained, that’s why i’m asking?

@CODER_JATIN pair<template2, template2> is a data structure, you can read about it here

ohk ji, thank you so much.

1 Like

Don’t forget to mark your doubt as resolved in case of no further queries!