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