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
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is the real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?
Explain the advantages of using macro in c language?
a program that can input number of records and can view it again the record
what is the main use of c where it can use the c
How to reverse a linked list
1 Answers Aricent, Fidelity, IBM, TCS,
What is a stream water?
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }
Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is data structure in c language?