Advertisement
Tannenfels

Untitled

Aug 7th, 2022
1,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include "stdio.h"
  2. int f(int* p){
  3.     return &p;
  4. }
  5.  
  6. int main(void){
  7.     int i = 10;
  8.     int* p = &i;
  9.     int r = f(p);
  10.     printf('%d', p == r ? 1 : 0);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement