why we using namespace std in c++ (IN URDU)

Опубликовано: 01 Апрель 2026
на канале: logic4 students
15,091
594

In this video i explained that why we use using namespace std in our program what is basically the purpose of namespace std...

EXPLAINING :- There are two students in one classroom having same name for example Vishal. now if we need to differentiate each of them , we would have to use some info along their name like their area of living , physical characteristics etc.

same goes with namespaces in C++ , you might have a variable named for example value in your C++ program , and there maybe a library which contains a variable named value in it. now there is no way for the compiler to know which version of variable value is being called in the code.

a namespace is designed to overcome this difficulty and is used as additional information to differentiate similar functions , variables etc. with the same name available in different libraries. Using namespace, you can define the context in which names are defined.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Download This Video Through This Link :-- ↓
➤ https://www.ssyoutube.com/watch?v=4-a...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
➤ Instagram: -
  / hussnainshakeel591  
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
➤ Facebook ID:
  / hussnain.butt.900  
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
➤ Facebook Page (Logic 4students):   / logic4student  
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
➤ Facebook Page (Software engineering):   / hussnainbutt776  
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
TO Subscribe My YouTube Channel :-
➤You Tube: -
   / @logic4students42  

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

👍 LIKE | SUBSCRIBE | SHARE

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬