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
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
State two uses of pointers in C?
Why should I use standard library functions instead of writing my own?
Explain what are the different file extensions involved when programming in c?
what are the various memory handling mechanisms in C ?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Write a c pgm for leap year
11 Answers College School Exams Tests, IBM, TCS,
What is the difference between Printf(..) and sprint(...) ?
Explain is it valid to address one element beyond the end of an array?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
In C language what is a 'dangling pointer'?
how i m write c program 1.check prime number 2.prime number series