"how to write "%" inside a c string in c" code example Example: how to store string in c char str[4] = "GfG"; /*One extra for string terminator*/