#include<string.h>
int a = 2;
string str = to_string(a);
I want to know that in C++ whenever we want to call a library function we use
library_object.function_name() notation. But here we are directly using to_string() function without the using object. So my question is why we are not calling to_string() function like
string_object.to_string();
Also please specify what's the difference between the calling function here with and without the object.
 
     
    