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?
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?
ohk ji, thank you so much.
Don’t forget to mark your doubt as resolved in case of no further queries!