```
int* twoSum(int* nums, int numsSize, int target) {
int i,j;
int* r;
r=(int *)malloc(2*sizeof(int));
nums=(int *)malloc(numsSize*sizeof(int));
for(i=0;i<numsSize;i++)
{
for(j=i+1;j<numsSize;j++)
if(*(nums+i)+*(nums+j)==target)
{ *r=i+1;
*(r+1)=j+1;
return(r);
}
}
r[0]=r[1]=0;
return(r);
```

}