What is the purpose of using random access in file handling?
- To access files in a random order.
- To create files with random names.
- To generate random numbers for file operations.
- To perform direct read/write operations at any position within the file.
The purpose of using random access in file handling is to perform direct read and write operations at any position within the file. Random access allows you to jump to a specific location in a file and read or write data without having to sequentially process the entire file. It's especially useful for large files or databases.
Loading...
Related Quiz
-
What is the difference between #include "filename" and #include
in C? - When you declare an array, what does the number inside the square brackets represent?
- How do you declare a two-dimensional array of integers with 3 rows and 4 columns?
- You're writing a program that needs to efficiently calculate the power of 2 for a given exponent. Which operator would be most efficient to use?
- When a variable is passed by what, any changes made to the parameter inside the function do not affect the original value?