Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- char *ppsz[14];
- void monitor();
- //////////////////////////////////////////////////////////
- int main() //
- {
- char *psz = (char*)malloc(15);
- strcpy(psz, "January");
- ppsz[1] = psz;
- psz = (char*)malloc(15);
- strcpy(psz, "February");
- ppsz[2] = psz;
- monitor();
- }
- //////////////////////////////////////////////////////////
- void monitor()
- {
- for(int i = 1; i < 3; i++)
- {
- printf("%s\n", ppsz[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement