15 ms·
Printf format is great, but there's an issue You're repeating yourself. Why? Because C can't know what types you are passing to it. So you have to explicitly
by raverbashing 15y ago
Printf format is great, but there's an issue
You're repeating yourself. Why? Because C can't know what types you are passing to it.
So you have to explicitly do '%d' or '%s' to let printf know what this is.
But yes, I think it's easier to type than {0}
- eru 15y agoIn Python's old style you can use %s everywhere, and Python will figure out the types.