Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there is % symbol in the end of my output?

Every time I get this symbol at the end of my output. This only happens in VS Code.

enter image description here

like image 660
Roshan Singh Avatar asked Oct 28 '25 08:10

Roshan Singh


1 Answers

This means that the program exited without printing a newline after the last line of output. You can change it to the following, and it should go away:

cout << "roshan\n";
like image 66
Alice Ryhl Avatar answered Oct 31 '25 10:10

Alice Ryhl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!