Advertisement
Josif_tepe

Untitled

Jan 5th, 2023
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6.  
  7. int main(int argc, const char * argv[]) {
  8.     int a = 10;
  9.    
  10.     int *b = &a;
  11.     int c = *b;
  12.     *b += 5;
  13.     printf("%d\n", *b);
  14.     printf("%d\n", a);
  15.     printf("%d\n", c);
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement