fork(2) download
  1. #include <iostream>
  2.  
  3. #define CAT(tt) CALLP (CAT_B ## tt CATE)
  4. #define CALLP(a) a
  5. #define CAT_B0 CATSN CATB 0,
  6. #define CAT_B1 CATSN CATB 1,
  7. #define CATS(a,b) a##b
  8. #define CATE )
  9. #define CATB (
  10. #define CATSN CATS
  11. #define T_(a) T__(a)
  12. #define T__(a) #a
  13.  
  14.  
  15. int main() {
  16. std::cout << (CAT ( 0 1 )) << std::endl;
  17. std::cout << (CAT ( 1 101 )) << std::endl;
  18. }
  19.  
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
1
1101