Advertisement
Guest User

male cislo

a guest
Apr 30th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <assert.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void)
  6. {
  7.     size_t to = 1; // vymyslena hodnota
  8.     size_t from = 10; // vymyslena hodnota
  9.     size_t x = (to - from + 2);
  10.     printf("ake malo cislo %zu\n", x);
  11.     char* p = malloc(x);
  12.     assert(p != NULL);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement