Question
#include <stdio.h>
int main ()
{
FILE * p;
char buffer[] = { 'x' , 'y' , 'z' };
p = fopen ( "myfile.txt" , "wb" );
fwrite (buffer , 1 , sizeof(buffer) , p );
fclose (p);
return 0;
}
a.
xyz
b.
zyx
c.
yxz
d.
none of the mentioned
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this program in the text file?
Similar Questions
Discover Related MCQs
Q. By using which function does the buffer are automatically flushed?
View solution
Q. How many parameters are available in the function setbuf?
View solution
Q. What is the main feature of locale in C++?
View solution
Q. Which objects information is loaded in locale object?
View solution
Q. How many categories are available in facets?
View solution
Q. What kind of locale does every program is having in C++?
View solution
Q. What will the monetary facet will do?
View solution
Q. Which header file is used with input and output operations of C in C++?
View solution
Q. Which will be used with physical devices to interact from C++ program?
View solution
Q. How many streams are automatically created when executing a program?
View solution
Q. How many indicators are available in c++?
View solution
Q. What is the benefit of c++ input and output over c input and output?
View solution
Q. To which type does the numeric limits are suitable?
View solution
Q. Where does the member should be defined if it is used in the program?
View solution
Q. What will the max function in the numeric limit will return for type float?
View solution
Q. Which header file is used for the numeric limits in C++?
View solution
Q. Pick out the incorrect static function member in numeric limits.
View solution
Q. With which does the trigonometric functions work with angles in c++?
View solution
Q. Which header file is required for manipulation of math functions in c++?
View solution
Q. How many macros are used by mathematical functions in the header file
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!