What is “##” operator in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

What is “##” operator in C?

9th May 2019, 10:32 AM
Bubbly🎀🎀🎀
Bubbly🎀🎀🎀 - avatar
5 Answers
+ 15
## is an macro operator which is used to concatenate https://www.cprogramming.com/reference/preprocessor/token-pasting-operator.html
9th May 2019, 10:34 AM
MsJ
MsJ - avatar
+ 9
The ‘##’ pre-processing operator performs token pasting. When a macro is expanded, the two tokens on either side of each ‘##’ operator are combined into a single token, which then replaces the ‘##’ and the two original tokens in the macro expansion.
9th May 2019, 12:15 PM
Shining Star
+ 4
This is given in the SL C tutorial BTW.
10th May 2019, 2:16 AM
Sonic
Sonic - avatar
+ 1
It is a macro-operator that is used to concatenate
10th May 2019, 8:27 AM
ermiopia
ermiopia - avatar
0
Macro token and concantenates 5 ## 6
10th May 2019, 10:17 AM
Benshak Panyil
Benshak Panyil - avatar