warning: assignment makes integer from pointer without a cast [-Wint-conversion]
category[20] = "Exam";
^
:44:22: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
category[20] = "Event";
^
printf("\nChoose what category your task falls under\n1) Exam\n2) Event\n3) Others(Please Specify)\n Pick a Category: ");
scanf("%d",&choice);
if (choice == 1)
{
category[20] = "Exam";
b = 1;
}
else if (choice == 2)
{
category[20] = "Event";
b = 1;
}
else if (choice == 3)
{
printf("Please Specify the Category: ");
scanf("%s", &category);
b = 1;
}
else{
printf("\nInvalid Category, Try Again");
}
} while (b != 1);