Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago