Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char sz1[10] = "January";
- char sz2[10] = "February";
- char *pszMonths[14];
- ////////////////////////////////////////////////////
- int main() //
- {
- char sz3[10] = "March";
- char sz4[10] = "April";
- pszMonths[1] = sz1;
- pszMonths[2] = sz2;
- pszMonths[3] = sz3;
- pszMonths[4] = sz4;
- printf("Address of %9s = %d\n", pszMonths[1], pszMonths[1]);
- printf("Address of %9s = %d\n", pszMonths[2], pszMonths[2]);
- printf("Address of %9s = %d\n", pszMonths[3], pszMonths[3]);
- printf("Address of %9s = %d\n", pszMonths[4], pszMonths[4]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement