What is a difference between unsigned int and signed int in C?

Consider these definitions:

int x=5;
int y=-5;
unsigned int z=5;

How are they stored in memory? Can anybody explain the bit representation of these in memory?

Can int x=5 and int y=-5 have same bit representation in memory?

32
задан SQB 13 November 2018 в 15:37
поделиться