Write a program which has the following seven functions.
The functions should be:
• 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.
You should use fscanf() to get the values of the variables
from the input (the file) and fprintf() to print the values
to the other file. Pay attention to using the correct
format for each of the data types.
No Answer is Posted For this Question
Be the First to Post Answer
coding for Fibonacci.?
What is a pointer value and address in c?
what is the difference b/w compiler and debugger?
What is indirection?
How many keywords are there in c?
What are static variables in c?
write a program to check whether a number is Peterson or not.
Explain the advantages of using macro in c language?
Explain how do you print only part of a string?
Explain the difference between structs and unions in c?
Why can’t we compare structures?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.