Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please I need help; when I try to gcc it give me this error: In function div_Vec: project5.c:149: error: incompatible type for argument 1 of
Please I need help; when I try to gcc it give me this error: In function div_Vec:
project5.c:149: error: incompatible type for argument 1 of free; line 149 is where we have free(r3)
/usr/include/stdlib.h:488: note: expected void * but argument is of type struct reg
if (flag) {
printf(" Error. Cannot divide by zero!");
}
else {
printVec(r3);
free(r3);
and the line 488 is where we have size=atoi(arg1); below
else if (strcmp(command, "A") == 0) {
scanf("%s", arg1);
size = atoi(arg1);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started