Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void print_pointer(int *wa, float *wb, char *wc){
  4.   printf("Adresy ze wskaznikow: %p, %p, %p \n", wa, wb, wc);
  5. }
  6.  
  7. void print_value(int i, float x, char c){
  8.   printf("Adresy ze zmiennych: %p, %p, %p \n", &i, &x, &c);
  9. }
  10.  
  11. int main (void){
  12.   int i = 1;
  13.   float x = 25.5;
  14.   char c = 'Z';
  15.  
  16.   int *wa = &i;
  17.   float *wb = &x;
  18.   char *wc = &c;
  19.  
  20.   print_pointer(wa,wb,wc);
  21.   print_value(i,x,c);
  22.  
  23.   return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement