Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- char **pp_sz;
- ////////////////////////////////////////////////////////////////////
- int main() //
- {
- pp_sz = (char**)malloc(40);
- char sz [99] = "SONY",
- sz2[99] = "Pictures";
- pp_sz[0] = (char*)sz;
- pp_sz[1] = (char*)sz2;
- pp_sz[2] = (char*)malloc(99);
- strcpy(pp_sz[2], "TDK");
- for(int i = 0; i < 3; i++)
- {
- printf("pp_sz[%d] = %s\n", i, pp_sz[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement