Q:

The ## Preprocessor Operator Example in C | C preprocessor programs

belongs to collection: C Preprocessors Programs

0

The ## Preprocessor Operator Example in C | C preprocessor 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.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
The __LINE__ Macro Example in C | C preprocessor p... >>
<< The # Preprocessor Operator Example in C | C prepr...