103k views
1 vote
The statement x++;

a) Increments the value currently stored in the variable x and stores that new value back in the variable x

b) Checks to see if x is at its maximum value and if so, exits the for loop

c) Moves the character pointer x to the next integer number in the string

1 Answer

1 vote

Answer:

The correct option for the given question is option(A) i.e Increments the value currently stored in the variable x and stores that new value back in the variable x.

Step-by-step explanation:

x++ is an increment operator Their are two types of increment operator

1.Post increment

2.Pre increment.

Post increment operator assign the value first to variable then increment the value by 1.

for example

int a=7,t;

t=a++; //post increment

Pre increment operator first increment the value by 1 then store into variable.

int a=7,t;

t=++a; // Pre increment.

So the correct answer is option(a)

User Aert
by
4.8k points