Answer:
B. Change the int to double in the typedef statement and recompile
Step-by-step explanation:
A typedef declaration is used to assign names to database.
Syntax:
typedef data_type new_name;
For this case the initial deceleration was
typedef int bag;
To change it to double values we have to do following
typedef double bag;
Therefore, option B is correct change the int to double in the typedef statement and recompile.