P
prasoonthegreat
int main( )
{
int i=1;
++i = 5;
}
Will the above code show Undefined Behaviour????
The value of i is changing only once between two sequence points or
twice??/???
I think twice,first after the increment and second after
assignment......but 5 will be assigned to incremented i in any
circumstances .....
So will it invoke UB???
{
int i=1;
++i = 5;
}
Will the above code show Undefined Behaviour????
The value of i is changing only once between two sequence points or
twice??/???
I think twice,first after the increment and second after
assignment......but 5 will be assigned to incremented i in any
circumstances .....
So will it invoke UB???