I wanna know why sscanf is storing the \n in the date buffer, how can I avoid it in order to have an output like this? : YYYY\_MM\_DD1234

```
    char yyyy[10];
    char mm[10];
    char dd[10];
    char date[100];

    puts("Give the date YYYY/MM/DD");
    fgets(date, sizeof date, stdin);
    sscanf(date, "%10[^_]_%10[^_]_%10[^_]", yyyy, mm, dd);

    strcat(date, "1234");
    printf("%c", date);

```

This is the output given by the program:

```
Output : YYYY_MM_DD
1234

```