Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void increment(int *p){
  2. (*p)++;
  3. }
  4.  
  5. void call_increment(const int *p){
  6. increment(p);
  7. }
  8.  
  9. int main(void){
  10. int x=7;
  11. int* p=&x;
  12.  
  13. call_increment(p);
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement