belongs to collection: C Preprocessors Programs
The ## is a preprocessor operator, which is used to concatenate two tokens. This operator works on two tokens, its takes two tokens and concatenate/combine them in a single token.
Example:
#include <stdio.h> #define VAR(X,Y) X##Y int main(){ int ab = 100; printf("%d\n",VAR(a,b)); return 0; }
Output
100
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Example:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer