answersLogoWhite

0

Functions_used_for_manipulation_of_file_pointers_are_as_follows:">Functions used for manipulation of file pointers are as follows:

seekg():_Moves_get_pointer_(input)_to_a_specified_location.">seekg():Moves get pointer (input) to a specified location.

seekp():_Moves_put_pointer_(output)_to_a_specified_location.">seekp():Moves put pointer (output) to a specified location.

tellg():_Gives_the_current_position_of_the_get_pointer.">tellg():Gives the current position of the get pointer.

tellp():_Gives_the_current_position_of_the_put_pointer.">tellp():Gives the current position of the put pointer.

The seekg & tellg functions are associated with get pointer and seekp & tellp functions are associated with put pointer.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

Which function is used to determine the position of the put pointer in the file?

pos_type tellp();


Which function is used to move file pointer from any position in file in c language?

FILE-level: ftell/fseek, fgetpos/fsetpos handle-level: lseek


What are the application of this pointer can you use this pointer in friend function justify?

The this pointer can only be used within nonstatic member functions. Friend functions are not members so they have no access to a this pointer. However, you can pass a specific instance of a class to a function via a class reference argument. To understand how friendship works, first understand that a nonstatic member function has the following properties: 1. It has private access to the class. 2. It is scoped to the class. 3. It must be invoked upon an object of the class (has a this pointer). Static member functions have the first two properties while friend functions only have the first property.


Library functions in C programming?

They are very important. The most commonly used functions are the string and file handling ones.


How does virtual function support run time polymorphism?

Virtual functions are used to suport runtime polymorphism.In C++,if we have inheritance and we have overridden functions in the inherited classes,we can declare a base class pointer and make it to point to the objects of derived classes.When we give a keyword virtual to the base class functions,the compiler will no do static binding,so during runtime ,the base class pointer can be used to call the functions of the derived classes.Thus virtual functions support dynamic polymorphism.

Related Questions

What does the file pointer return?

The file pointer, often used in programming to manage file input and output, returns the current position within a file. It indicates where the next read or write operation will occur. Depending on the context, it can also provide information about the file's end, allowing for efficient data processing and manipulation. Functions or methods associated with file pointers can typically move or adjust this position as needed.


Which function is used to determine the position of the put pointer in a file in c plus plus?

The function ftell returns the position of the file pointer for a file.


Which function is used to determine the position of the put pointer into the file?

tellp()


Which function is used to determine the position of the put pointer in the file?

pos_type tellp();


What function will read a specified number of elements from a file?

The function fread() in C can be used to read a specified number of elements from a file. It takes as arguments the pointer to the buffer, size of each element, number of elements to read, and the file pointer.


Which function is used to move file pointer from any position in file in c language?

FILE-level: ftell/fseek, fgetpos/fsetpos handle-level: lseek


What are the application of this pointer can you use this pointer in friend function justify?

The this pointer can only be used within nonstatic member functions. Friend functions are not members so they have no access to a this pointer. However, you can pass a specific instance of a class to a function via a class reference argument. To understand how friendship works, first understand that a nonstatic member function has the following properties: 1. It has private access to the class. 2. It is scoped to the class. 3. It must be invoked upon an object of the class (has a this pointer). Static member functions have the first two properties while friend functions only have the first property.


What is header file in computer programming?

A header file is used in some languages to declare functions that will be used but are not yet defined in the current source code. This is primarily used by C and C++, and usually for library functions and user-defined functions that are stored in separate files and folders than the main source code file.


Library functions in C programming?

They are very important. The most commonly used functions are the string and file handling ones.


How does virtual function support run time polymorphism?

Virtual functions are used to suport runtime polymorphism.In C++,if we have inheritance and we have overridden functions in the inherited classes,we can declare a base class pointer and make it to point to the objects of derived classes.When we give a keyword virtual to the base class functions,the compiler will no do static binding,so during runtime ,the base class pointer can be used to call the functions of the derived classes.Thus virtual functions support dynamic polymorphism.


If you delete something from your computer such as music and movies does it free up the space on your hard drive completely or does some of it remain?

Answer:When you delete something such as music, video, or documents, a pointer (a small piece of code) for the file itself is what gets sent to the trash. This pointer, along with other pointer for every folder and file on the hard drive, is saved in a section near the beginning of the hard drive and is used by the operating system to create a directory. When you clear out the trash, the OS realizes that the pointer is gone, and then marks the section the file is at as writable. So basically the file never really gets sent to the trash, but gets written over.


What is an NB file?

This is a file used for mathematical computation. It may store text/documents, audio, images, and functions.

Trending Questions
Recursive function in c to compute the number of nodes in a binary tree? Why the bacteria and viruses are main objects in the genetic? What signal is defined as a digital signal of 64Kbps? What will occurred if discharge of the centrifugal fan blocked? What supportability analysis tools is used to identify problems and take corrective action in a cyclical process within a simulated operational environment? What defined as sets of formatting characteristics such as font font size font color cell borders and cell shading? What computer language should you learn first? How do you load calculate in building? What is the difference between an invention and a prototype? What are the advantages and disadvantages of a salary cap? What is the primary purpose of the Materiel Solution Analysis (MSA) phase? Pearl can you insert Ruby in GBA slot nocash emulator? Which country invented the trebuchet first? Is there any difference in allocation of the memory of the member of class and object? How much does it cost to build a water turbine? Name three man made woods? What makes a heat pump change from cooling to heating Is it the reversing valve or is it something else I guess what i am asking is it that componet or does it have some kind of thermostat on it? What is an advantage and disadvantage of a constant in programming? What are the three wires called on a transistor? What is the easiest and quickest way to make a suspension and a cable stayed bridge out of balsa wood?