In addition to the header file named math.h, there is another header file that d
ID: 3846965 • Letter: I
Question
In addition to the header file named math.h, there is another header file that declarations of several math functions. What is the name of this header file? Your answer: _______ Suppose the following function definition is given: void fun (int* x) { *x += 2; printf ("%d " *x); return; } Which of the following a valid call to the above function? int a = 5;fun (&a;); int a = 5;fun (a); int a = 5;fun (*a); int a = 5;int b = fun (&a;) int a = 5;int b = fun. (*a); Your answer: Write the declaration of a function named testing, which takes in one int parameter, and returns no result. Your answer: ___________ Identify and correct the error(s) in each of the following function declaration function call pair: function declaration: void fun (int x); function call: y = fun (z);//assume the declaration int z; Your answer: ________________Explanation / Answer
28) option a
Argument to function fun is a pointer (address) pointing to int. Argument has to be address of a. Also function doesn't return nothing.
29) void testing (int) ;
30) function fun returns no result. Therefore function call is wrong. It should be just fun(z)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.