0
How is my compiler able to use the srand function without #include <cstdlib>?
I am using VS 2017. How is my compiler able to use the srand function without #include <cstdlib>?
2 Answers
0
Doesn't VS create a stdafx.h header that includes stdlib.h?
0
iirc if you attempt to use a function without including the header it's from VS will include said header for you, this slows compile-time by an insignificant amount of time, but it's still good practice to include the proper headers