When I run the code in my computer, it turns out all right.

However, OJ says wrong.

`Input: [9] Output: [4,2] Expected: [1,0]`

Here is my code:

```
int* plusOne(int* digits, int digitsSize, int* returnSize) {
for (int i = digitsSize-1; i > -1; --i) {
if (digits[i] == 9) {
digits[i] = 0;
} else {
digits[i]++;
*returnSize = digitsSize;
return digits;
}
}
*returnSize = digitsSize+1;
int newArr[*returnSize];
memset(newArr, 0, *returnSize);
newArr[0] = 1;
return newArr;}
```