Rotate image (square matrix) by 90 deg
Tue, 06 May 2025
int main()
{
enum os {windows, unix, mac};
enum furnitures {doors, windows, table, chair, bed};
for(int i=doors; i<bed; i++)
printf("%d ", i);
return 0;
}
Result: ERROR !
In the given program, enumeration constant windows is defined twice, once in os and then in furnitures. An enumeration constant can only be defined once.
It cannot be repeated across enumerations.
Tue, 06 May 2025
Tue, 06 May 2025
Tue, 06 May 2025
Leave a comment