What is ## operator in C?

Long Answer
Views 714

Answer:

## is a pre-processor macro in C. It is used to concatenate 2 tokens into one token.


#include<stdio.h>

#define concatination(a,b) a ## b

int main ()
{
  int ab = 1000;
 printf("The concatenated value is:%d \n",concatination(a,b));
 return 0;
}


Output:

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.