String concatenate : String Append « String « C / ANSI-C






String concatenate


#include <stdio.h>

#define concat(a, b)  a ## b

int main(void)
{
  int xy = 10;

  printf("%d", concat(x, y));

  return 0;
}

           
       








Related examples in the same category

1.Demonstrates how to put strings together using strcat
2.Get first and last name and print them together
3.Join strings
4.Join strings: revitalised: strlen and strcat
5.Append string to another string
6.Append string: strncatAppend string: strncat
7. Append substring to string: strncat
8. Append string: how to use strcat Append string: how to use strcat