-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathdecrement.xml
More file actions
executable file
·54 lines (34 loc) · 939 Bytes
/
Copy pathdecrement.xml
File metadata and controls
executable file
·54 lines (34 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>-- (decrement)</name>
<category>Math</category>
<subcategory>Operators</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
int a = 5; // Sets 'a' to 5
int b = a--; // Sets 'b' to 5, then decrements 'a' to 4
int c = a; // Sets 'c' to 4
]]></code>
</example>
<description><![CDATA[
Substracts the value of an integer variable by 1. Equivalent to the operation <b>i = i - 1</b>. If the value of the variable <b>i</b> is five, then the expression <b>i--</b> decreases the value of <b>i</b> to 4.
]]></description>
<syntax>
<c>var</c>--
</syntax>
<parameter>
<label>var</label>
<description><![CDATA[int]]></description>
</parameter>
<returns></returns>
<related>
- (minus)
-= (subtract assign)
++ (increment)
</related>
<availability>1.0</availability>
<type>Operator</type>
<partof>PDE</partof>
</root>