Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char szArr[14][19] = {"---", "Jan", "Feb", "Mar", "Apr"};
- char *pArr[14];
- ////////////////////////////////////////////////////
- int main() //
- {
- pArr[1] = szArr[1];
- pArr[2] = szArr[2];
- pArr[3] = szArr[3];
- pArr[4] = szArr[4];
- for(int i = 4; i > 0; i--)
- {
- printf("%d = %s\n", i, szArr[i]);
- }
- printf("- - - - - - - \n");
- for(int i = 1; i < 5; i++)
- {
- printf("%d = %s\n", i, pArr[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement