operations in the cout<<
-
int x = 4; cout<< x+3; i want to know what is the type of variable holds the expression x+3 in the cout statement. ****************** ****************** ** Ahmed Ismail ** ****************** ******************
-
int x = 4; cout<< x+3; i want to know what is the type of variable holds the expression x+3 in the cout statement. ****************** ****************** ** Ahmed Ismail ** ****************** ******************
as both operands of the operator + are integers, the resulting variable is also an integer...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
int x = 4; cout<< x+3; i want to know what is the type of variable holds the expression x+3 in the cout statement. ****************** ****************** ** Ahmed Ismail ** ****************** ******************
I think that it's atemporary variable which made in the run time from the type int to hold the output then it will be destroyed.
-
int x = 4; cout<< x+3; i want to know what is the type of variable holds the expression x+3 in the cout statement. ****************** ****************** ** Ahmed Ismail ** ****************** ******************
it should be int but it is Compiler to decide wrt its Type Expressions