Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- const char *pszMonths[14] = { "", "January", // The element with index 0 will not be used,
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December"
- };
- ////////////////////////////////////////////////////
- int main() //
- {
- char *p;
- for(int i = 1; i <= 12; i++)
- {
- printf( "%d ", pszMonths[i] );
- printf("%10s\t", pszMonths[i] );
- p = (char*)pszMonths[i];
- do{ printf("%2X, ", *p);
- p++;
- } while(*p);
- printf("%2X\n", *p);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement