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

coding for Fibonacci.?

1 Answers  


What is a pointer value and address in c?

0 Answers  


what is the difference b/w compiler and debugger?

2 Answers   Assurgent,


What is indirection?

0 Answers  


How many keywords are there in c?

0 Answers  


What are static variables in c?

0 Answers  


write a program to check whether a number is Peterson or not.

4 Answers  


Explain the advantages of using macro in c language?

0 Answers  


Explain how do you print only part of a string?

0 Answers  


Explain the difference between structs and unions in c?

0 Answers  


Why can’t we compare structures?

0 Answers  


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

0 Answers  


Categories