GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 153 of 255    Print  
How would you use the functions fseek(), freed(), fwrite() and ftell()?

  
Total Answers and Comments: 1 Last Update: March 26, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 26, 2007 12:26:22   #1  
ykbharat Member Since: February 2007   Contribution: 12    

RE: How would you use the functions fseek(), freed(),...
fread(s,i1,i2,f)  Enter i2 dataitems,each of size i1 bytes,from file f to string s.

fseek(f,1,i)   Move the pointer for file f a distance 1 byte from location i.

ftell(f)  Return the current pointer position within file f.

fwrite(s,i1,i2,f)   send i2  data items,each of size i1 bytes from string s to file f.

The data type returned for functions fread,fseek and fwrite is int and ftell is long int.

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : It's not trivial to implement nested functions such that they have the proper access to local variables in the containing function(s), so they were deliberately left out of C as a simplification. (gcc does allow them, as an extension.) For many ...

Latest Answer : In C you would use an array of pointer-to-functions and call the functions by using the array index. ...

Latest Answer : Inline functions are small sized functions (basically 2-3 line function) which do not contain any loop. whenever an inline function is invoked, it is expanded thereby rather then passing the control to where it has been defined, thus reducing execution ...

Latest Answer : It is possible to declare and define body functions in header files, there is no restrictions to create your all code inside a header file.SourceCode.c:#include "SourceCode.h"SourceCode.h:#include #include int Calc(int ...

Latest Answer : in the header files Functions are decleared.  ...

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

Write a program which uses functions like strcmp(), strcpy()? What are the advantages of using typedef in a program?

Latest Answer : All these r conversion functionatoi()-string to integer.itoa()-integer to string.gcvt()-double to string. ...

Latest Answer : Yes i used the pow function earlier. once i came to a situation to generate the links in the menu page on my left hand side panel when the user selects some products in each form. For ex: in the first form when the user is non us person or us person ...



 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

Microsoft AJAX Library - JavaScript Functions

JavaScript Functions A simple fact that was highlighted in the previous chapter but that is often overlooked is key to understanding how objects in JavaScript work code that doesn t belong to a function is executed when it s read by the JavaScript interpreter while code that belongs to a function is
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

ERPAdvantages for Management Functions

ERP Advantages for Management Functions ERP management systems provide a technology platform in which organizations can integrate and coordinate their main internal business processes They use this to fight against the problem of the organizational inefficiency brought on by the use of different sys
 

C++ Static Functions

C Static Functions Static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class The main usage of
 

C++ Virtual Functions

C Virtual Functions What are Virtual Functions Virtual as the name implies is something that exists in effect but not in reality The concept of virtual function is the same as a function but it does not really exist although it appears in needed places in a program The object oriented programming la
 

C++ Inline Functions

C Inline Functions In this C tutorial you will learn about Inline function what is inline function reason for the need of inline function what happens when an inline function is written general format of inline function explained with example mosgoogle center What is Inline Function Inline functions
 

String handling functions

What is the string handling functions present in header file <string.h>? There are number of string handling functions present in string.h. In other words if a programmer uses any of the function present in string.h then they must include the header file as #include <string.h&am
 

SQL Functions

SQL Programming Overview In the article SQL Programming, we discussed creating the “Hello, World!” function in PostgreSQL, MySQL, and Oracle. In this article, we take “Hello, World!” one step farther and introduce the parts of a function and how to pass parame
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape