• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which function is used to close a file in C?
  1. open()
  2. close()
  3. fclose()
  4. endfile()
Explanation
  • fclose() returns 0 on success and EOF (-1) on failure.
  • It flushes any buffered data to the file before closing the stream
    For the standard input/output streams (stdin, stdout, stderr)

Related MCQs

  1. Star Topology
  2. Bus Topology
  3. Ring Topology
  4. Mesh Topology
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Integration Testing
  2. Unit Testing
  3. System Testing
  4. Acceptance Testing
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. True
  2. False
  3. Partially True
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Input → Processing → Output → Storage
  2. Processing → Input → Storage → Output
  3. Storage → Input → Processing → Output
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. --
  2. ++
  3. +=
  4. **
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com