Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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...

0 Answers  


State two uses of pointers in C?

0 Answers   Aspire, Infogain,


Why should I use standard library functions instead of writing my own?

0 Answers  


Explain what are the different file extensions involved when programming in c?

0 Answers  


what are the various memory handling mechanisms in C ?

4 Answers   HP,


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

0 Answers  


Write a c pgm for leap year

11 Answers   College School Exams Tests, IBM, TCS,


What is the difference between Printf(..) and sprint(...) ?

0 Answers   InterGraph,


Explain is it valid to address one element beyond the end of an array?

0 Answers  


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

0 Answers   Huawei,


In C language what is a 'dangling pointer'?

0 Answers   Accenture,


how i m write c program 1.check prime number 2.prime number series

1 Answers  


Categories