<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Vorzeichenlos oder nicht?]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>mit unsigned deklariere ich eine Variable als Vorzeichenlos<br />
und mit signed kann sie positiv und negativ sein.</p>
<p>Was ist denn, wenn ich nur int schreibe ohne einen dieser<br />
Zusätze. Ist es dann immer mit Vorzeichen oder Compilerabhängig?</p>
<p>Gruß,<br />
(un)signed</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184410/vorzeichenlos-oder-nicht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 17:37:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184410.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Jun 2007 21:51:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vorzeichenlos oder nicht? on Thu, 14 Jun 2007 21:51:19 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>mit unsigned deklariere ich eine Variable als Vorzeichenlos<br />
und mit signed kann sie positiv und negativ sein.</p>
<p>Was ist denn, wenn ich nur int schreibe ohne einen dieser<br />
Zusätze. Ist es dann immer mit Vorzeichen oder Compilerabhängig?</p>
<p>Gruß,<br />
(un)signed</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306147</guid><dc:creator><![CDATA[(un)signed]]></dc:creator><pubDate>Thu, 14 Jun 2007 21:51:19 GMT</pubDate></item><item><title><![CDATA[Reply to Vorzeichenlos oder nicht? on Thu, 14 Jun 2007 21:55:15 GMT]]></title><description><![CDATA[<p>Genau genommen ist es compilerabhängig. Bin mir aber grad nicht ganz sicher, was der Standard vorschreibt, glaube <em>signed</em> ist standard.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306150</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 14 Jun 2007 21:55:15 GMT</pubDate></item><item><title><![CDATA[Reply to Vorzeichenlos oder nicht? on Thu, 14 Jun 2007 22:02:09 GMT]]></title><description><![CDATA[<p>Alle ganzzahligen Datentypen außer char sind defaultmäßig vorzeichenbehaftet.</p>
<p>Edit: Außer char, das ist vom Compiler abhängig.</p>
<p>In C ist es jedenfalls so. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Da ja C angeblich eine Untermenge von C++ sein soll, dürfte das auch für C++ gelten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306152</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Thu, 14 Jun 2007 22:02:09 GMT</pubDate></item><item><title><![CDATA[Reply to Vorzeichenlos oder nicht? on Thu, 14 Jun 2007 21:59:15 GMT]]></title><description><![CDATA[<p>CodeFinder schrieb:</p>
<blockquote>
<p>Genau genommen ist es compilerabhängig.</p>
</blockquote>
<p>Ausdrücklich nochmal: Nein. int und signed int sind derselbe Typ (dito für short und long). Nur bei char gibt es drei Typen, char, signed char und unsigned char, und es ist compilerabhängig, ob char vorzeichenbehaftet ist oder nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306153</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Thu, 14 Jun 2007 21:59:15 GMT</pubDate></item><item><title><![CDATA[Reply to Vorzeichenlos oder nicht? on Fri, 15 Jun 2007 06:28:20 GMT]]></title><description><![CDATA[<p>proggingmania schrieb:</p>
<blockquote>
<p>Da ja C angeblich eine Untermenge von C++ sein soll, dürfte das auch für C++ gelten.</p>
</blockquote>
<p>Nein, C++ baut auf C auf, ist aber keine Obermenge (es gibt auch C-Konstrukte, die in C++ nicht exisitieren oder eine andere Bedeutung haben (z.B. <code>int func();</code> ).</p>
<p>Aber für diese Frage stimmt's schon - 'int' ist das selbe wie 'signed int'.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306227</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 15 Jun 2007 06:28:20 GMT</pubDate></item></channel></rss>