Token-Pasting operator:

The tokens passed to macros can be contcatehanted using operator ## ..

#include <stdio.h>
#define merge(a, b) a##b
int main()
{
printf("%d ", merge(12, 34));
}
// Output: 1234
SHARE

About df

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment