answersLogoWhite

0


Best Answer

Post decrement is where you decrease the variable by one after using it.

void someFunc(int s) { printf(s); }

void main()

{

int s = 3;

someFunc(s--);

printf(s);

}

will output 3 then 2.

User Avatar

Wiki User

βˆ™ 13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is post decrement?
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.


Why are increment and decrement used in c?

To increment or decrement a value


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").


Decrement operators programing in java?

The decrement operator is simply the double minus, attached to a variable:a--;or:--a;The two examples above are identical, and both are equivalent to:a -= 1;or:a = a - 1;However, if the decrement operator is used as part of more complicated expressions, in the --variable version, the decrement is done before anything else, while in the variable-- version, the decrement is done after anything else.


What is the opposite word of improvement?

Decrement By Nagaraj naga.ambati@gmail.com Decrement By Nagaraj naga.ambati@gmail.com


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 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.


How do you apply the decrement factor if you find that the contractor appears to have overestimated the proposal price?

Multiply the decrement factor by the total cost of all sampled items


Which arithmatic operations can be performed on pointers?

Increment and decrement only.


What is the advantage of using file compression?

decrement in file size.........


What is the difference between predecrement and postdecrement operator in c?

The order of the operations: --p means: decrement the variable, then fetch the new value p-- means: fetch the old value, then decrement the variable


How can you offset a pointer in C?

Increment or decrement the pointer by the required offset.