Answers for "unsigned"

0

unsigned

Um int vai de -2147483648 à 2147483647.

Um unsigned int vai de 0 à 4294967295.

O mesmo vale para o char ou short ou long. 

Se usar apenas unsigned sem especificar mais nada, o int é assumido

Tipo de dados       Tipo de assinatura padrão
-------------------------------------------------
short            -> signed short
signed short
unsigned short
int              -> signed int
signed int
unsigned int
signed           -> signed int
unsigned         -> unsigned int
long             -> signed long
signed long
unsigned long
char              
signed char
unsigned char
Posted by: Guest on August-04-2021

Browse Popular Code Answers by Language