Advertisement
RicardasSim

test

Oct 14th, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdint.h>
  4.  
  5. void tst(uint32_t *pVar)
  6. {
  7.     printf("%d\n", *pVar);
  8. }
  9.  
  10. int main()
  11. {
  12.  
  13.     uint32_t var = 123;
  14.  
  15.     tst(&var);
  16.  
  17.     tst((uint32_t[]){456});
  18.  
  19.     tst(&(uint32_t){789});
  20.  
  21.     return 0;
  22. }
  23.  
  24. /*
  25. output:
  26.  
  27. 123
  28. 456
  29. 789
  30.  
  31. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement