c solution
Code

# Code
```c []
/**
 * Note: The returned array must be malloced, assume caller calls free().
 */
int* numOfBurgers(int tomatoSlices, int cheeseSlices, int* returnSize) {
    // base case 1
    int *res = calloc(2,sizeof(int));
    *returnSize = 0;
    if(2*cheeseSlices > tomatoSlices || 4*cheeseSlices < tomatoSlices){
        return res;
    }
    if(cheeseSlices==0 && cheeseSlices==0){
        *returnSize = 2;
        return res;
    }
    for(int i=0;i<=cheeseSlices;i++){
        int Jumbo = i , Small  = cheeseSlices - i;
        if((Jumbo*4 + Small*2)==tomatoSlices){
            *returnSize = 2;
            res[0] = Jumbo;
            res[1] = Small;
            return res;
        }
    }
    return res;
}
```
['C']