sentence: for example , java will not allow a float value to be assigned to a variable declared as an int without additional syntax explicitly stating that intention , while c and c++ will automatically truncate any floats assigned to an int .