22.16 Streams and Files
Does the last line of a text stream require a terminating new line character? (ISO 7.9.2)
No.
Do space characters, that are written out to a text stream immediately before a new line character, appear when the stream is read back in? (ISO 7.9.2)
Yes.
How many null characters may be appended to data written to a binary stream? (ISO 7.9.2)
None.
Is the file position indicator of an append mode stream initially positioned at the start or end of the file? (ISO 7.9.3)
Start.
Does a write on a text stream cause the associated file to be truncated beyond that point? (ISO 7.9.3)
Application defined.
Describe the characteristics of file buffering. (ISO 7.9.3)
Fully buffered.
Can zero-length file actually exist? (ISO 7.9.3)
Yes.
What are the rules for composing a valid file name? (ISO 7.9.3)
Application defined.
Can the same file be open multiple times? (ISO 7.9.3)
Application defined.
What is the effect of the remove function on an open file? (ISO 7.9.4.1)
Application defined.
What is the effect if a file with the new name exists prior to a call to the rename function? (ISO 7.9.4.2)
Application defined.
What is the form of the output for %p
conversion in
the fprintf
function? (ISO 7.9.6.1)
A hexadecimal representation.
What form does the input for %p
conversion in the
fscanf
function take? (ISO 7.9.6.2)
A hexadecimal representation.