convert a variable to string in c code example Example: integer to stringc int someInt = 368; char str[12]; sprintf(str, "%d", someInt);