fork download
  1. #include <iostream>
  2.  
  3. void foo( int ) {}
  4. typedef int* PtrInt;
  5. void bar( PtrInt p)
  6. {
  7. std::cout << "Value of p is " << p;
  8. }
  9.  
  10. int main()
  11. {
  12. foo( int() );
  13. bar( PtrInt() );
  14. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
Value of p is 0