if I select case 1 nothing happens, I do not understand what is the problem, case 1 is ignored and it jumps to the next iteration.
this is the result I get by selecting case 1:
Enter -1 to quit                                                                                                                                                                                 
Enter your choice: 1                                                                                                                                                                             
Enter -1 to quit                                                                                                                                                                                 
Enter your choice:   
it should ask me for a user input and then print it
#include<stdio.h>
int main()
{
    int I;
    char* str[100];
    do
    {
        puts("Enter -1 to quit");
        printf("Enter your choice: ");
        scanf("%d",&I);
        switch(I)
        {            
            case 1:
            fgets(str,100,stdin);
            printf(str);
            break;
            case 2:
            printf("45\n");
            break;
            case -1:
            puts("Bye");
            break;
            default:
            printf("default\n");
        }
    }while(I != -1);
    return 0;
}
 
    