Question about enum
#6

Quote:
Originally Posted by dxhj
Посмотреть сообщение
No, it doesn't matter. The compiler will accept with the last coma or not.

Of course, here's an example:

Код:
	
enum myEnum {
	foo[144]
}
	
new bar[myEnum];
sizeof(bar[foo]); /* 144 */
That doesn't apply to tridimensional arrays.
Reply


Messages In This Thread
Question about enum - by Kimble - 09.12.2015, 23:12
Re: Question about enum - by SickAttack - 09.12.2015, 23:23
Re: Question about enum - by Kimble - 10.12.2015, 00:56
Re: Question about enum - by SickAttack - 10.12.2015, 03:08
Re: Question about enum - by dxhj - 10.12.2015, 03:11
Re: Question about enum - by SickAttack - 10.12.2015, 03:14
Re: Question about enum - by dxhj - 10.12.2015, 03:28
Re: Question about enum - by SickAttack - 10.12.2015, 03:37
Re: Question about enum - by dxhj - 10.12.2015, 03:52
Re: Question about enum - by Crayder - 10.12.2015, 16:08

Forum Jump:


Users browsing this thread: 2 Guest(s)