My assignment is:

Write a C program that accepts a month and day (for example, June 14) from the keyboard as input. Store this information in one string called date. Call a function named separate() passing in the string date and the addresses of a tempmonth array and tempday integer. The separate() function should extract the two values from the passed string and store them into the passed variable addresses. Back in main, print the data in tempmonth and tempday.

so far I have come up with

Code:
#include<stdio.h>
int main()
{
#define DSIZE 15
    void separate(char [], char *, int *);
    char date[DSIZE];
    char tempmonth[10];
    int tempday;
    

    printf("\nPlease enter a date, (ex. January 28): ");
      gets(date);
    separate(date, tempmonth, &tempday);

    printf("Month: ");
    puts(tempmonth);
    printf("Day: %d",tempday);

    return 0;
}

void separate(char date[], char *tempmonth_addr, int *tempday_addr)
{
    sscanf(date,"c%d",tempmonth_addr, tempday_addr);
}
the output value is a bunch of strange information,

any help please