SHARE
TWEET

Untitled

a guest May 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdbool.h>
  4. #include <time.h>
  5.  
  6. void pokazTablice(int *Tablica, int wielkosc)
  7. {
  8.    
  9.    
  10. {
  11.     int i;
  12.     for(i=0;i<wielkosc;i++){
  13.         printf("%d ", Tablica[i]);
  14.     }
  15.     printf("\n");
  16. }
  17. //zad1
  18. int* kopiujTablice(int *Tablica_do_kopiowania, int wielkosc){
  19.     int *Tablica,i;
  20.     Tablica = (int*)calloc(wielkosc,sizeof(int));
  21.     for(i=0;i<wielkosc;i++){
  22.         Tablica[i] = Tablica_do_kopiowania[i];
  23.     }
  24.     return Tablica;}
  25.    
  26. int main()
  27. {
  28.  
  29. int *Tablica, wielkosc;
  30. scanf("%d" , &wielkosc);
  31. Tablica=(int*)calloc(wielkosc, sizeof(int));
  32. printf("%d" , &Tablica);
  33.  
  34. }
  35. return 0;
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top