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 funct
Not every function returns something, which is indicated by using void:
void
void function_returns_nothing(void);
printf is a function (declared in ) and it returns an int, which is the number of characters outputted. If an error occurs, the number is negative.
printf
int