Ad
Fundamentals

'\n' is faster and more effective than std::endl.

Code
Diff
  • #include <iostream>
    
    using namespace std;
    int helloCplusplus(){
      cout << "Hello Cplusplus" << '\n';
      return 0;
    }
    • #include <iostream>
    • using namespace std;
    • int helloCplusplus(){
    • cout << "Hello Cplusplus" << endl;
    • cout << "Hello Cplusplus" << '\n';
    • return 0;
    • }