Problem - Ausgabe positiver Zahlen
-
Also ich schrieb mit Turbo C jenes Programm, das eine Zahl als positive Zahle anzeigen soll, aber es funzt net..kann mir einer sagen wieso???
#include <stdio.h>
#include <conio.h>int main()
{
int a = -12345;
printf ("Wert der Variable a als positive Zahl: %u.",a);
getch();
return 0;
}-------------------------
Also es läuft aber als Zahl wird dann 53191 angezeigt.
-
Das hier ist nicht das C-Forum sondern das von C#!
Aber schau dir mal die Vorzeichenbelastung an(Signalwort signed) http://www.dinoex.de/c-kurs-3.html
-
uups sorry, trotzdem thx für deine hilfe