Print "Hello World" statement in C++

 #include<iostream>


int main() {
    std::cout<<"Hello World";
    return 0;
}

OUTPUT :
PS D:\C++Practicals> > cd "d:\C++Practicals\" ; if ($?) { g++ tut1.cpp -o tut1 } ; if ($?) { .\tut1 } Hello World PS D:\C++Practicals>

Comments

Popular posts from this blog

Variable Scope & Data Types in C++

Constants, Manipulators and Operator Precedence in C++

Variable Scope and Data Types