Difference between put() and wrie() in c++
Answers
Answered by
2
Answer:
I am still confused about the difference between ostream& write ( const char* s , streamsize n ) in c++ and cout in c++ The first function writes the block of data pointed by s, with a size of n characters, into the output buffer. The characters are written sequentially until n have been written. whereas cout is an object of class ostream that represents the standard output stream. It corresponds to the cstdio stream stdout. Can anyone clearly bring out the differences between the two functions.
Similar questions
India Languages,
3 months ago
Computer Science,
3 months ago
Computer Science,
8 months ago
Geography,
11 months ago
Biology,
11 months ago