I just wanted to ask whats the difference between endl and just ";" on its own. For e.g when I want to print out a simple text like below which syntax would be correct ?
cout << "Hello" << endl ;
cout <<"Hello" ;
Btw; I'm teaching myself C++ in my spare time and I'm not a industry professional or student so I'm sorry for my derpy questions
Difference between " ; " and " endl "
Post a Reply
|Oldest Newest Rating|
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|