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 |
What are activex and ole?
Why do we use classes in programming?
Explain operator overloading.
What is the extraction operator and what does it do?
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.
Do you need a main function in c++?
What is a c++ map?
Enter n no. of element and delete value from desire position
Is oops and c++ same?
What is the difference between Char a[ ]=”string” and char *a=”String”
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];
In java a final class is a class that cannot be derived. How can you make a similar class in C++