qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Token-Pasting Operator
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Operator:  ##
 
  Syntax:    token##parameter
             parameter##token
 
  Summary:   The token-pasting operator, used only with macros. If
             ## precedes or follows a formal parameter in the
             definition of a macro, the actual argument is concatenated
             with the token on the other side of the ## when the macro
             is expanded. For example,
 
                  #define printvar(x) printf("%d\n", var##x)
 
             causes the statement
 
                  printvar(7);
 
             to be expanded into
 
                  printf("%d\n",var7);
                                    -♦-