this window jumps when it gets to receiving a code
hey, i started learing C today and made a program, i got this message on my program so i tested the exercise answer and it was getting the same error, getting the message on the picture whenever it gets to the line : this code is the answer ..
scanf_s("%s", &id);
**thats the full code:**
int main() {
char id[10];
int hour;
double value, salary;
printf("Input the Employees ID(Max. 10 chars): ");
scanf_s("%s", &id);
printf("\nInput the working hrs: ");
scanf_s("%d", &hour);
printf("\nSalary amount/hr: ");
scanf_s("%lf", &value);
salary = value * hour;
printf("\nEmployees ID = %s\nSalary = U$ %.2lf\n", id, salary);
return 0;
}
didnt find any answer to it online , help please.