C or C++ : Variable self-assignment