Q1008
What will be the output of the following C++ code in text file? #include 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
AnswerB.
zyx
C.
yxz
D.
yyx
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board