Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
98 views
in Computer by (72.7k points)
closed by
The creation of file variable will automatically create a special variable associated with it, called as
1. Buffer variable 
2. Text variable
3. Allocated variable
4. Floating variable

1 Answer

0 votes
by (121k points)
selected by
 
Best answer
Correct Answer - Option 1 : Buffer variable 

The creation of a file variable will automatically create a special variable associated with it, called as buffer variable

Syntax

buffer-variable = file-variable '^' | file-variable '@'

Where file-variable is a reference to a file variable.

Important points

When a file variable is opened in read-only mode, the contents of the buffer variable associated with the file variable, will either be equal to the first value in the file or be undefined if the file is empty.

As the file is read, the contents of the buffer variable will always either be equal to the next value to be read from the file or be undefined if there is no next value to be read from the file 

When a file variable is opened in write-only mode, the contents of the buffer variable associated with the file variable is initially undefined.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...