![]() ![]() ![]() assigning a double value to an int variableĬout << "num_double = " << num_double << endl assigning int value to a double variable Let us look at two examples of implicit type conversion.Įxample 1: Conversion From int to double // Working of implicit type-conversion This type of conversion is also known as automatic conversion. The type conversion that is done automatically done by the compiler is known as implicit type conversion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |