Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 632 Bytes

File metadata and controls

15 lines (8 loc) · 632 Bytes

#Lets Start from Sctrach

Hello World

1> #include -- this is a header file library that lets us to work with input and output objects, such as cout, header files add functionality to C++ programs.

2> using namespace std -- means that we can use names for objects adn variables from the standard library.

or we can also ommit namespace, this can be omitted and replaced with the "std" keyword, followed by :: operator for some objects.

eg- std::cout<<"Hello World";

  1. int main() - this is main function and code inside {} these brackets will be executed.

4> return 0; - to end the main function.