-
What is the output of this program in the text file?
#include
int main ()
{
FILE * ptr;
char buff[] = { 'I' , 'L' , 'U' };
ptr = fopen ( "Example.txt" , "wb" );
fwrite (buff , 1 , sizeof(buff) , ptr );
fclose (ptr);
return 0;
}
-
- I
- L
- U
- ILU
- None of these
Correct Option: D
In this program, We are writing into the file by using the function fwrite.