what printf returns
printf in C returns the number of characters that are outputted by the function.
Example
#include <stdio.h> int main() { int i; i = printf("Hello"); // Hello if of 5 characters // so i is 5 printf("\n%d",i); getchar(); return 0; }