As told, endl; is used to tell that our c++ statement is ended. I wanted to ask that what if we don’t use endl; , do it have any effect irrespective of that it gives next output in a new line?
is it alright to finish any c++ statement with a semicolon without using endl;?
for example:- cout<<“Hello world”;