Computer Science, asked by imtiajtarafder3288, 1 year ago

Difference between ios member functions and manipulators

Answers

Answered by arpit3360
20
difference between manipulators and ios member function in implementation?

1. ios functions returns value while manipulators does not.

2.we can not create own ios functions while we can create our own manipulators.

3.ios functions are single and not possible to be combined while manipulators are possible to be applied in chain.

4.ios function needs while manipulators needs

5.ios functions are member functions while manipulators are non-member functions.

Answered by vinod04jangid
2

Answer:

Difference between IOS member functions and Manipulators.

Explanation:

IOS Functions - ios is the name of a class that implements many features of the input/output system. It returns value. User cannot create it's own ios functions. They are single and impossible to combine. It needs <iostream>.

Manipulators - They are those functions that are designed to work with the inserter i.e. <<  and extractor i.e. >>  operators in association with one of the input/output stream objects. They do not return value and user can define it's own manipulators. They are non-member functions. They can be applied in chain. We need to include <iostream> to use manipulators without arguments where as include <iomanip> to use manipulators with arguments.

#SPJ2

Similar questions