fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define trace(...) #__VA_ARGS__
  5.  
  6. int main() {
  7.  
  8. int a = 1, b = 2, c = 3;
  9. string z;
  10. z = trace(a);
  11. cout << z << endl;
  12.  
  13. z = trace(a, b);
  14. cout << z << endl;
  15.  
  16. z = trace(a, b, c);
  17. cout << z << endl;
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 4492KB
stdin
Standard input is empty
stdout
a
a, b
a, b, c