I am new to C. Suppose we have a function get\_float(); it should return a float value.
but in C, we should explicitly declare a float type variable first before we assign the float value to it.

```
float number = get_float("what's the number");

```

I was wondering any reasons for designing such rule.

It seems to decrease mistakes if we can declare a variable without declaring its data type in the case of assigning function return value. Programmers don't need to worry that they declare a wrong data types that don't match with the function return value.

```
number = get_float("what's the number");

```