i am getting right solution but on submitting i go wrong answer issue :https://ide.codingblocks.com/s/233345
Median of the sorted arrays
you use wrong formula for median
median of resultant array is (temp[n-1]+temp[n])/2;
because resultant array has 2*n elements
also there are some error of braces
see the modified code
i hope this helps
if you have further doubts regarding this you can ask
if your doubts is resolved mark it as resolved
still i am getting one wrong answer