Assuming that I'm printing a string, as follows:
printf("%s", s);
What can we assume the asymptotic complexity of this function is?
Is it O(n) where n is strlen(s) - it's length? Or is it somehow O(1), constant time. Or something different? I supposed you'd need to know how printf tends to be implemented, however. Any insight is appreciated!
(I should clarify that I'm talking about C rather than C++ but I doubt they're implemented differently)
Edit: added formatting string to printf()