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

The ## Preprocessor Operator Example in C: Here, we will learn how the ## operator works in C programming language.
By IncludeHelp Last updated : March 10, 2024

C - ## Preprocessor Operato

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.

C - ## Preprocessor Operato 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

C Preprocessors Programs »

Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.