Advertisement
Guest User

malloc

a guest
Oct 23rd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. A = (char**) malloc(sizeof(char*)*rows);
  2. for (i = 0; i < rows; i++)
  3. A[i] = (char *) malloc(cols * sizeof(char));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement