• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
A void function in C generally
  1. Returns an integer
  2. Returns a string
  3. Returns no value
  4. Returns a Boolean value
Explanation

A void function in C is used for its side effects rather than returning a value.

Common uses include:

  • Printing to the screen (e.g., a function that prints a menu)
  • Modifying global variables
  • Updating values through pointers (e.g., a swap function)

Related MCQs

  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. **
اس سوال کو وضاحت کے ساتھ پڑھیں

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

  1. open()
  2. close()
  3. fclose()
  4. endfile()
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com