#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) yyx
What will be the output of the following C++ code in text file?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C++ code in text file?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!