+ 4
What is "##" preprocessor directive used for or how does it work?
3 Answers
+ 4
thnku ma'amđ
@vaishnavi
+ 3
â##â preprocessing 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. Usually both will be identifiers, or one will be an identifier and the other a preprocessing number. When pasted, they make a longer identifier. This isnât the only valid case. It is also possible to concatenate two numbers (or a number and a name, such as 1.5 and e3) into a number. Also, multi-character operators such as += can be formed by token pasting.
+ 2
thanx for your regards sir!