fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x=5;
  7. int *ptr=&x;
  8. cout<<(*ptr)++<<endl;
  9. cout<<*ptr;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4404KB
stdin
Standard input is empty
stdout
5
6