C code blocks Write the complete function that receives a pointer to a single floating point number as an argument and returns that number after subtracting 100 from it.  Define your function in the same way as the given function prototype.    Take a look at the "For example" below to see how the function is used in the main function and the expected result.  (For interest sake, note that this is a pass-by-reference function call.)   #include  #include void subtractFunc(float *a);int main(){    float num = 357.900;     subtractFunc(&num);     printf("%.3f", num);    return 0; } //Your answer starts here  For example: Test Result float num = 357.900; subtractFunc(&num); printf("%.3f", num); 257.900

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
icon
Related questions
Question

C code blocks

Write the complete function that receives a pointer to a single floating point number as an argument and returns that number after subtracting 100 from it. 

Define your function in the same way as the given function prototype. 

 

Take a look at the "For example" below to see how the function is used in the main function and the expected result. 

(For interest sake, note that this is a pass-by-reference function call.)

 

#include <stdio.h>
#include <stdlib.h>void subtractFunc(float *a);int main(){    float num = 357.900;
    subtractFunc(&num);
    printf("%.3f", num);    return 0;
}

//Your answer starts here 


For example:

Test Result
float num = 357.900; subtractFunc(&num); printf("%.3f", num); 257.900

 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning