R
raphfrk
Hi,
Assuming I define an enum as:
enum cardsuit {
CLUBS = 0,
DIAMONDS,
HEARTS,
SPADES
};
Can I be sure that the integer corresponding to DIAMOND is 1?
If so what would happen with:
enum cardsuit {
CLUBS = 3,
DIAMONDS = 2,
HEARTS,
SPADES
};
Would HEARTS end up as 4 and is that guaranteed?
Assuming I define an enum as:
enum cardsuit {
CLUBS = 0,
DIAMONDS,
HEARTS,
SPADES
};
Can I be sure that the integer corresponding to DIAMOND is 1?
If so what would happen with:
enum cardsuit {
CLUBS = 3,
DIAMONDS = 2,
HEARTS,
SPADES
};
Would HEARTS end up as 4 and is that guaranteed?