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
Q. where is the below variables stored ? - volatile, static, register
write a program to arrange the contents of a 1D array in ascending order
Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which of the following is incorrect? (A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
which of 'arrays' or 'pointers' are faster?
how to find sum of digits in C?
What is the difference between File pointer and Internal Charecter Pointer?
Write a program to swap two numbers without using a temporary variable?
Write a program to print prime nums from 1-20 using c programing?
What happens if header file is included twice?
Difference between exit() and _exit() function?
What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
21 Answers ADITI, Student, TCS,
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }