how will we create pair of arrays
How will we create pair of arrays
will this not create an array of pair which contains int
i want pair.first to be an rray and pair.second to be another array
the one i told you will work like an 2d array of 2*size . i think you are also saying the same thing
no what if we want a pair of two 1 d array
@kartik-malik what you are saying is implemented through above syntax but i will try your one and tell you after some time
@kartik-malik here can do it like this
pair<int*,int*> p;
p.first=new int[10];
p.second=new int[10];
p.first[0]=1;
p.second[0]=2;
1 Like