20 A.prvky = (
int *) malloc(3 *
sizeof(
int));
24 A.pocet = 3 *
sizeof(int) * 8;
27 B.prvky = (
int *) malloc(3 *
sizeof(
int));
31 B.pocet = 3 *
sizeof(int) * 8;
34 printf(
"Mnozina A: \n");
39 printf(
"Mnozina B: \n");
45 printf(
"Prunik mnozin A a B: \n");
52 printf(
"Sjednoceni mnozin A a B: \n");
59 printf(
"Rozdil mnozin A a B: \n");
77 mez_i = A.pocet / (
sizeof(int) * 8) + 1;
80 for (i = 0; i < mez_i; i++) {
83 int mez_j = (i < mez_i - 1) ?
sizeof(
int) * 8 : (A.pocet % (
sizeof(int) * 8));
89 for (j = 0; j < mez_j; j++) {
94 if (A.prvky[i] & maska)
95 printf(
"%i, ", index);