Question: fact.c #include #include lab02.h int fact(){ int result =1 , i ; for(i=2 ; i fib.c #include #include lab02.h int fib (){ int f1 =

fact.c

#include #include "lab02.h" int fact(){ int result =1 , i ; for(i=2 ; i

fib.c

#include #include "lab02.h" int fib (){ int f1 = 0 , f2 = 1 , result =0 , i ; if(n == 1) result =1 ; else for(i=0 ; i

output.c

#include #include "lab02.h" void output(int result){ printf("the result is :%d ", result); }

input.c #include #include "lab02.h" void input (){ printf("enter an integer: "); scanf("%d", &n); }

main.c

#include #include "lab02.h" int main (){ input(); fact(); fib(); return 0; }

fact.c #include #include "lab02.h" int fact(){ int result =1 , i ;

please help me with the code and the command please

(in C programming language and Unix ) computer system lab 222

8- Modify the "main.c" to call the function: double pow(double x, double y): computes value of x raised to the power of y. Then calls the output function with the result as an argument. Also, it returns the value of the result. Name the modified source file "main3.c". Use the following interposition techniques: a) None: Use the standard pow function. Name the file "mypow1.c" and generate the executable object file "lab02e" Compile-time: Name the file "mypow2.e" and generate the executable object flc "lab02f b) c) Link-time: Name the file "mypow3.c" and generate the executable object file "lab02g". d) Run-time: Name the file "mypow4.c and generate the executable object file "lab02h". Include all the source files, commands used and their results with the execution of each file in your report

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!