# and ## Operators in C
# and ## Operators in C
This operator causes the corresponding actual argument to be enclosed in double quotation marks. The # operator, which is generally called
the stringize operator, turns the argument it precedes into a quoted string. For more on pre-processor directives – refer this
Examples :
Output:
geeksforgeeks
Output:
Value of a is 8.3297
3. This program nds out maximum out of two numbers using macro
Output:
Allows tokens used as actual arguments to be concatenated to form other tokens. It is often useful to merge two tokens into one while
expanding macros. This is called token pasting or token concatenation. The ‘##’ pre-processing 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.
Examples :
Output:
30
Application: The ## provides a way to concatenate actual arguments during macro expansion. If a parameter in the replacement text is
adjacent to a ##, the parameter is replaced by the actual argument, the ## and surrounding white space are removed, and the result is re-
scanned.