Computer Science, asked by abhijeetsarkar433, 11 months ago

Difference between ios class
functions and manipulators

Answers

Answered by PoojaBurra
0

1. Ios functions returns value but manipulators doesen't.

2. We can't create own ios functions but can create our own manipulators.

3. Ios functions are single and can't be combined but manipulators are possible to be applied in chain.

4. Ios function needs are different from manipulators needs.

5. Ios functions are member functions but manipulators contains non-member functions.

Answered by topanswers
0

Manipulators: Helper functions that make it possible to control input/output streams.

Functions: Set of functions are procedures that perform a certain task.

Differences:

  • Functions returns value. Manipulators do not anything.
  • Possible to define functions. Manipulators cannot be created.
  • Functions are single. Manipulators can be applied in chain.
  • Function needs <iostream>. Manipulators needs <iomanip>
  • Functions can have member functions. Manipulators are non-member functions.
Similar questions