0
Error in Merge sort implementation
The code give below is code of merge sort. When I run this program I get output array same as input array? I can't trace where is the problem? Can you trace it? https://code.sololearn.com/c2ivmw06r92q/?ref=app
1 Réponse
+ 2
Your calculation of n gets 1 as 4/4=1. There isn't a way for C to know how many elements are in your array.