In this program, the user inputs the date and month of the year in terms of numbers. The output has to be in letters. I can't change the variables.
- I don't know how to print the months in the array. I've tried %s, thinking it was a string but it doesn't work.
- List itemI don't understand why we have to use a pointer if monthnames is already an array? I thought they were the same thing, or equivalent? Thanks in advance for your help ! :)
printfto be%swithmonthnames[month-1].scanf("%d/%d", &day, &month),printf("....%d...%s...", day, monthnames[month-1]);