If I declare a struct node, is the following legal in C++? node nodes_array[vector.size()];
I know this is not legal in C. However, my C++ compiler does not complain. Is this only in recent versions of C++, or has this always been legal in C++?
titaniumdecoy
58
Light Poster
Recommended Answers
Jump to PostDepends on the compiler -- most c++ compilers will complain about that.
All 2 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
sarehu
84
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.