Merge sort with raw C++ array
With regards to variable names and readability, I would recommend the following:


Change p to outputIndex
Change p1 to firstIndex
Change p2 to secondIndex
Change sizeFirst to firstSize
Change sizeSecond to secondSize