Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void pobieranie()
- {
- int *tab,*pom;
- tab = malloc(sizeof(int));
- int liczba = 1,i=1;
- while (liczba != 0)
- {
- scanf("%d", &liczba);
- while (getc(stdin) != '\n') {}
- tab[i] = liczba;
- pom = realloc(tab, (i + 2) * sizeof(int));
- tab = pom;
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement