Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!