Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
strcat() modifies the first operand. Therefore it cannot be const. But you passed it a const char*.
strcat()
const
const char*
So you can't use strcat() on two const *char strings.
const *char