FILE is a keyword in C for representing files and fp is a variable of FILE type.
FILE is a structure and fp is a pointer to the structure of FILE type
FILE is a stream
FILE is a buffered stream
A character string containing the name of the file & the second argument is the mode
A character string containing the name of the user & the second argument is the mode
A character string containing file poniter & the second argument is the mode
None of the mentioned
Nothing
EOF
NULL
Depends on compiler
rewind() doesn't work for empty files
rewind() may fail for large files
In rewind, there is no way to check if the operations completed successfully
All of the above
int type
char * type
struct type
End of files is reached
When getc() fails to read a character
Both of the above
None of the above
Subscripted variable
Collective array
Ordinary variable
Similar Quantities variable
Zero
Garbage value
One
Combination of zero and one
Data type
Dimension
name
Data type and Dimension
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
return
static
new
volatile
int
float
double
depends on the data type of the parameter
break
exit
Both break and return
Array
Linked list
Binary tree
Stack
Compile time error
Run time error
Logical error
No error
FILE *fopen(const *filename, const char *mode)
FILE *fopen(const *filename)
FILE *open(const *filename, const char *mode)
FILE open(const*filename)
create text file for writing, discard previous contents if any
create text file for update, discard previous contents if any
create text file for writing, do not discard previous contents if any
create text file for update, do not discard previous contents if any
text file
big text file
binary file
blueprint text
1
0
– 1
read a line from a file
read a character from a file
write a character to a file
write a line to a file