Advertisement
Guest User

test

a guest
Nov 21st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void f2() {
  5.     int f2int;
  6.     int *ptr = &f2int;
  7.  
  8.     char *s = "hahaha";
  9.  
  10.     for (size_t i = 0; i < 20; i++)
  11.     {
  12.         printf("%d\n", *(s + i));
  13.     }
  14.    
  15. }
  16.  
  17. void f1() {
  18.     int f1int = 100;
  19.     f2();
  20. }
  21.  
  22. int main() {
  23.     f1();
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement