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
1.4m articles
1.4m replys
5 comments
57.0k users