w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Why doesn't C++ program wait a sec for 2nd iteration like it does for 1st iteration before printing a character

Output in C++ is buffered. This means that a bunch of characters are collected together and output at the same time, either when the buffer is full or the program ends, or when the stream is flushed (with endl for example).

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.