What is ## operator in C?

C Programming Language >   C Pre-processor >   Introduction about Pre-processor  

Long Question

839


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:


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.