-5

If we use

using namespace std

in our source file, in which step is the definition of namespace imported to our source file?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
supriya
  • 1
  • 1
  • 2
    Possible duplicate of [Why is "using namespace std;" considered bad practice?](https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice) – Richard Critten May 30 '19 at 09:40

1 Answers1

0

The definition of the namespace is imported when you write:

#include <iostream>

or

#include <stdio.h>

by writing using namespace std you don't import the namespace, you allow using its entities without std prefix, like cout instead of std::cout

Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161