Can someone please explain the behavior of the following code. How come the function message() with return type int is returning the no of characters printed by printf() function without any return statement ?
#include <stdio.h>
int message();
int main() {
int c;
printf("C before:%d\n",c);
c=message();
printf("C after:%d\n",c);
return 0;
}
int message(){
printf("From the message");
}