```
int main()
{
   int n = 56;
   char buf[10]; //want char* buf instead
   sprintf(buf, "%i", n);
   printf("%s\n", buf);

   return 0;
}

```

This piece of code works, my question is what if i want the same behaviour, with buf being a char\* ?