Computer Science, asked by robohashv1, 1 day ago

Write a program which has 7 functions.
The functions should be main() this calls the other 6 functions namely:
fget_long() a function which returns a long data type from a file

fget_short() a function which returns a short integer variable from a file

fget_float() a function which returns a floating point variable from a file
fprt_long() a function which prints its single, long argument into a file
fprt_short() a function which prints its single, short argument into a file
fprt_float() a function which prints its single, floating point argument into a file

You should use scanf() to get the values of the variables from the input (the keyboard) and printf() to print the values to the terminal. Pay attention to using the correct format for each of the data types. If you have a compiler that only knows double, use double in place of float - or use it anyway if you want

Answers

Answered by shilpa85475
1

Explanation:

main() this calls the other 6 functions

• fget_long() a function which returns a long data

type from a file

• fget_short() a function which returns a short

integer variable from a file

• fget_float() a function which returns a floating

point variable from a file

• fprt_long() a function which prints its single,

long argument into a file

• fprt_short() a function which prints its single,

short argument into a file

• fprt_float() a function which prints its single,

floating point argument into a file.

Similar questions