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

Post New Answer

More C Interview Questions

please explain every phase in the "SDLC" in the dotnet.

0 Answers  


What is fflush() function?

0 Answers  


Which header file is used for clrscr?

0 Answers  


How to write a multi-statement macro?

0 Answers  


How to set a variable in the environment list?

1 Answers  






What does p mean in physics?

0 Answers  


how can use subset in c program and give more example

0 Answers  


What are register variables in c?

0 Answers  


How will you write a code for accessing the length of an array without assigning it to another variable?

0 Answers  


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


What will be the output of the following program #include<stdio.h> void main() { int i=20; i-=i+++++i++; printf("%d",i); }

5 Answers  


int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(“%d”,*(*(x+1)+3));

2 Answers   Wipro,


Categories