Today in my interview, the interviewer asked: printf is a function and every function returns something; int, void, float, etc. Now what does printf return as it's a function?
int. On success, the total number of characters written is returned. On failure, a negative number is returned.
int
See reference here
2.1m questions
2.1m answers
60 comments
57.0k users