Danke jetzt bekomme ich eine korrekte Ausgabe.
PHP-Code:
#include <stdio.h>
#include <limits.h>
int main(void) {
printf("long-Wert mindestens : %ld\n", LONG_MIN);
printf("long-Wert maximal : %ld\n", LONG_MAX);
printf("unsigned long max. : %lu\n", ULONG_MAX);
printf("long benötigt %d Byte (%d Bit) Speicher\n", sizeof(long), sizeof(long) * CHAR_BIT);
return 0;
}
Code:
./long_limit
long-Wert mindestens : -2147483648
long-Wert maximal : 2147483647
unsigned long max. : 4294967295
long benötigt 4 Byte (32 Bit) Speicher
Lesezeichen