SHARE
TWEET

Untitled

a guest May 19th, 2019 57 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. int main(){
  6.  
  7. int *Tablica, wielkosc;
  8. scanf("%d" , &wielkosc);
  9. Tablica=(int*)calloc(wielkosc, sizeof(int));
  10.  
  11. void pokazTablice(int *Tablica, int wielkosc)
  12. {
  13. {
  14.     int i;
  15.     for(i=0;i<wielkosc;i++){
  16.         printf("%d ", Tablica[i]);
  17.     }
  18.     printf("\n");
  19. }
  20. //zad1
  21. int* kopiujTablice(int *Tablica_do_kopiowania, int wielkosc){
  22.     int *Tablica,i;
  23.     Tablica = (int*)calloc(wielkosc,sizeof(int));
  24.     for(i=0;i<wielkosc;i++){
  25.         Tablica[i] = Tablica_do_kopiowania[i];
  26.     }
  27.     return Tablica;}
  28.  
  29. }
  30. return 0;}
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