C code. Pls upvote
How did i do it?I created new array r for result. I shortened numsSize * 2 * sizeof(int) to numsSize*8. In loop for each index i, the element nums[i] is copied
# How did i do it?
I created new array r for result. I shortened numsSize * 2 * sizeof(int) to numsSize*8. In loop for each index i, the element nums[i] is copied to the corresponding index i in the result array r. The same element nums[i] is also copied to the index numsSize + i in the result array, effectively creating a second copy of the input array. The size of the concatenated array is numsSize * 2 and return r. Sorry for bad explanation.
# Code
```c []
int* getConcatenation(int* nums, int numsSize, int* returnSize) {
    int* r=malloc(numsSize*8);
    for (int i=0;i<numsSize;i++){
        r[i]=nums[i];
        r[numsSize+i]=nums[i];
    }
    *returnSize=numsSize*2;
    return r;
}
```
['C']