Why is my simple C program printing "hello world" and being compiled with no errors and is running fine when I gave a floating point number next to return statement? Shouldn't it be an error to do so?
Here is my code:
#include<stdio.h>
int main()
{
printf("hello world");
return 2.1;
}