This may be a stupid question but I was going through the K&R book to practice C a bit noticed that you don’t need to specify a return type for the functions. I thought C was a strongly typed language. How is this possible ? Is this something like type inference ? Maybe they let something like this because of implicit conversion but a bit confused to see this..
Eg:
#include<stdio.h>
int main()
{
int c = funct();
}
funct()
{
return 3;
}
Nothing that fancy; the default return type is int.