Use of # and ##

C/C++

Use of # and ##
# (Pound Sign) is used as operators to perform token replacement and ## (Double Pound Sign) is used as operators to perform merging during the preprocessor scanning phase.
The following code illustrates the use of # and ##.



Output :-
Use of # and ## Output
Compiler Used - TURBO C++ Version 3.0

Download the source code and exe files from here.

No comments: