2

Is there any way to concatenate char pointers with the + operator in c?

I know that I can concatenate strings with strcopy() and strcat()

How to concat two char * in C?

Concatenate two char* strings in a C program

But how can I concatenate char pointers with the + operator in c?(Maybe operator overloading works but I don't know how to overload + operator to concatenate char pointers)

3code
  • 75
  • 6

1 Answers1

2

You can't do that in C. C does not support operator overloading.

Abhishek Keshri
  • 3,074
  • 14
  • 31