What is ā€œ##ā€ operator in C? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 12

What is ā€œ##ā€ operator in C?

9th May 2019, 10:32 AM
BubblyšŸŽ€šŸŽ€šŸŽ€
BubblyšŸŽ€šŸŽ€šŸŽ€ - avatar
5 Respostas
+ 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