<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jetzt lerne ich programmieren &#187; Dekrement</title>
	<atom:link href="http://www.jlip.de/tag/dekrement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jlip.de</link>
	<description>oder so ähnlich...</description>
	<lastBuildDate>Thu, 29 Oct 2009 13:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Inkrement und Dekrement</title>
		<link>http://www.jlip.de/inkrement-und-dekrement/</link>
		<comments>http://www.jlip.de/inkrement-und-dekrement/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 12:45:12 +0000</pubDate>
		<dc:creator>Harun admin</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Dekrement]]></category>
		<category><![CDATA[Inkrement]]></category>

		<guid isPermaLink="false">http://www.jlip.de/?p=231</guid>
		<description><![CDATA[Man kann Zahlen in C entweder um 1 erhöhen oder vermindern. ++ Zahl wird um 1 erhöht &#8211;    Zahl wird um 1 vermindert Bsp. int i = 1; double  x = 5, y; char c = &#8216;A&#8217;; i++;    // i = 2 x++;  // x = 6.0 c++;  // c = &#8216;B&#8217; i&#8211;;    [...]]]></description>
			<content:encoded><![CDATA[<p>Man kann Zahlen in C entweder um 1 erhöhen oder vermindern.<span id="more-231"></span></p>
<p>++ Zahl wird um 1 erhöht</p>
<p>&#8211;    Zahl wird um 1 vermindert</p>
<p>Bsp.</p>
<p>int i = 1;<br />
double  x = 5, y;<br />
char c = &#8216;A&#8217;;</p>
<p>i++;    // i = 2<br />
x++;  // x = 6.0<br />
c++;  // c = &#8216;B&#8217;<br />
i&#8211;;      // i = 1<br />
x&#8211;;     // x = 5.0 da vorher ++<br />
c&#8211;;     // c = &#8216;A&#8217; da vorher ++<br />
Die stellung der Variablen spielt dabei eine Rolle.<br />
1) Ink. / Dek. VOR einer Variable:<br />
- erst Ink. / Dek. dann Berechnung</p>
<p>2) Ink. / Dek. NACH einer Variable:<br />
- erst Berechnung dann Ink. / Dek.</p>
<p>Bsp.</p>
<p>int i = 1, j = 2, k;</p>
<p>k = i + j++ // k = 3, j = ++ also 3   -  1. Berechnung = 3    -  2. dann 1 zu j</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>int i = 1, j = 2, k;</p>
<p>k = i++ +j; // k = 3, i = 2</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
int i = 1, j = 2, k;</p>
<p>k = ++i + j; // k = 4, i = 2</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jlip.de/inkrement-und-dekrement/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
