What is a binary file? List the merits and demerits of the binary file usagein C++.



What is a binary file? List the merits and demerits of the binary file usagein C++...

Answer / Ravishankar

A binary file is a data file that stores information using a series of bytes, unlike text files which store human-readable characters. In C++, binary files are useful for storing complex data structures such as arrays or objects, as they can preserve the original structure of the data. Advantages include faster access times and compact storage size. Disadvantages include platform dependence (binary files may not be portable across different operating systems) and lack of human-readability.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are activex and ole?

1 Answers  


Why do we use classes in programming?

1 Answers  


Explain operator overloading.

1 Answers  


What is the extraction operator and what does it do?

1 Answers  


Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.

0 Answers   Maxobiz,


Do you need a main function in c++?

1 Answers  


What is a c++ map?

1 Answers  


Enter n no. of element and delete value from desire position

1 Answers  


Is oops and c++ same?

1 Answers  


What is the difference between Char a[ ]=”string” and char *a=”String”

11 Answers   Adobe,


If we declare two macro with the same identifier without doing undef the first, what will be the result? eg: #define MAX_SIZE 100 #define MAX_SIZE 200 int table1[MAX_SIZE];

3 Answers  


In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 Answers  


Categories