why using namespace public declaration ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why using namespace public declaration ?

I don't understand about it ? why?

12th Jun 2017, 6:13 PM
Ratana Sean Chan
Ratana Sean Chan - avatar
1 Answer
0
In c you do not need it. in c++ yes, it manages the prefixes, like physics::get_volume, declaring namespace physics you will need to write just get_volume
12th Jun 2017, 7:29 PM
Emore Anzolin
Emore Anzolin - avatar