Consider the following small program:
#include <cstdio>
int main() {
printf("%d\n", 1);
std::printf("%d\n", 2);
return 0;
}
- What does C++ standard say about importing C library functions into global namespace by default? Can you point me to the relevant C++ standard section?
- What is the reason ANSI C functions are in
std
namespace in the first place, since they are by default imported into global namespace?