You may have noticed while using cout (console-output) in C++, we have 2 common options to move the cursor to the newline(ie \n and endl). Both \n and endl are used to move the cursor to the next line, but they are not the same in terms of performanc...

Markdown supported · ⌘↵ to post
No responses yet.