pastebin

Paste Search Dynamic
Recent pastes
fun int p
  1. #include <iostream>
  2. using namespace std;
  3. void fun(int *p){
  4. int q=10;
  5. p=&q;
  6. }
  7.  
  8. int main() {
  9.         // your code goes here
  10. int r=45;
  11. int *p= &r;
  12. fun(p);
  13. printf("%d",*p);
  14.  
  15.         return 0;
  16. }
Parsed in 0.005 seconds