196k views
4 votes
True or Flase

1.The statement:

loop -= ++count;

has the same effect as the statements:

count = count+1;
loop = loop - count;

1 Answer

5 votes

Answer:

True.

Step-by-step explanation:

In statement 1 we have loop-=++count;

which means loop = loop - (++count);

Where ++ is a pre increment operator which increases the value of count by 1 before using it.

In the other statement also we are doing the same thing.

Increasing the count by 1 and decreasing it from the loop variable.

Hence we conclude that the answer is True.

User Frederick Ollinger
by
7.8k points

Related questions

1 answer
5 votes
176k views