answersLogoWhite

0


Best Answer

To increment or decrement a value

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why are increment and decrement used in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How different is pre and post increment in c plus plus from pre and post increment in C programming?

The pre and post increment (and decrement) operator is the same in C++ as it is in C.


How can you offset a pointer in C?

Increment or decrement the pointer by the required offset.


For loop in c language?

for(assigning initial value;condition;increment/decrement) { statement; }


Which arithmatic operations can be performed on pointers?

Increment and decrement only.


What is increment and decrement operators?

increment operator increments the variable by 1 at a time and decrement operator decrements by 1 in this we have two types increments pre_increment and post increment. In pre_increment the original value is incremented by 1 and assign the new value n=10 i=++n then i =11 In post increment the original value is assigned and after it increments value by 1. n=10 i=n++ then i=10 example: k=5 i=k++ + ++k i=? ans: in first k++ value is 5 second ++k value is 7 i=5+7=12


What is auto increment and auto decrement mode?

access and update in one instruction.


How do you get your nested loop to decrement and not increment?

Easy. Change any + to -, any += to -=, any ++ to --


What is the opposite of the word increment?

The process of decreasing in number, size, quantity, or extent.Decrease, loss, decrement, reduction, diminution, decline, decay, etc. Decrement.


Looping statement in c plus plus?

There are several 'looping' statements in C++. They are:while () { }do { } while () ;for (index-start, index-end; index increment/decrement) { }They are used to repetitively execute statements as long as the statement(s) controlling the loop are true.


What is a 'post fix expression' in java programming?

Postfix expressions are expressions where the operator is at the end of the expression. These include the "++" (increment) and "--" (decrement) operators. Most Java expressions use in-fix notation (e.g. "a + b") but the increment and decrement operators can be postfix ("e.g. "a++" to increment variable a) or even prefix (e.g. "++a").


Which two pointer does not increment or decrement in arithmetic array?

constant pointer and character pointer


What is increment and auto decrement register addressing mode?

access and update in one instruction.