A void function in C generally?

  • AReturns an integer
  • BReturns a string
  • CReturns no value
  • DReturns a Boolean value
Show answerHide answer

Correct answer C

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).