M
mechanicfem
Lately I've been trying to learn about new stuff in c99 - today's topic
was/is variable length arrays.
As well as asking here, I've been 'doing the rounds' via Google, and
recently I found this article:
http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=215
It didn't help me much re my earlier question about using [*]
However, could someone tell me if this article is /reasonable/?
For example, the article mentions variadic macros, and __VA_ARGS__ -
however, I cannot find __VA_ARGS__ in the draft ISO spec I have, and so
I wonder if it's genuine?
I've also noted a couple of things that don't make sense that 'make me
wonder' about its quality, e.g.,
struct Employee
{
....
}
Followed by (note the missing /struct/)
Employee emp = {.ID=0, .record=NULL};
I guess my question really is - where can I find examples of /new/ c99
features, c/w readable descriptions?
x
Jo
P.S.
Just noticed that the article says that long long is at least 64 bits,
whereas the std says
The rank of long long int shall be greater than the rank of long int,
which
shall be greater than the rank of int, which shall be greater than the
rank of short
int, which shall be greater than the rank of signed char.
So, is there some error here too perhaps?
was/is variable length arrays.
As well as asking here, I've been 'doing the rounds' via Google, and
recently I found this article:
http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=215
It didn't help me much re my earlier question about using [*]
However, could someone tell me if this article is /reasonable/?
For example, the article mentions variadic macros, and __VA_ARGS__ -
however, I cannot find __VA_ARGS__ in the draft ISO spec I have, and so
I wonder if it's genuine?
I've also noted a couple of things that don't make sense that 'make me
wonder' about its quality, e.g.,
struct Employee
{
....
}
Followed by (note the missing /struct/)
Employee emp = {.ID=0, .record=NULL};
I guess my question really is - where can I find examples of /new/ c99
features, c/w readable descriptions?
x
Jo
P.S.
Just noticed that the article says that long long is at least 64 bits,
whereas the std says
The rank of long long int shall be greater than the rank of long int,
which
shall be greater than the rank of int, which shall be greater than the
rank of short
int, which shall be greater than the rank of signed char.
So, is there some error here too perhaps?