My Code:
int main() {
int x = 10, y;
y = printf("x = %d\n", x);
printf("y = %d\n", y);
return 0;
}
Output:
x = 10
y = 7
I know printf returns the number of character when we print string. But why is returning 7 when printing 10. what is the return value of printf when it prints int ?
Possible Duplicate: Return value of printf() function in C