Computer Science, asked by sunnyraj1693, 9 months ago

What is the purpose of "using namespace std" during the program execution
ix. in the Dev C++.

Answers

Answered by HandsnScreens
0

Answer:

So you don't have to write std:: all the time.

Explanation:

The purpose of using namespace std is just to save time. For example, a simple program may look like this:

#include <iostream>

using namespace std;

int main(){

  cout<<"Hello World";

}

Without namespace std:

int main(){

  std::cout<<"Hello World";

}

Notice the std:: at the front of the cout. This references a method in the std namespace.

Similar questions