x = function().

As long as x is of the same type as what function returns, or it is something that can be automatically converted (e.g. int to float, float to int, char * to string) it shouldn't...