cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Why array of length zero.
Why array of length zero.
Nov 26, 2011 at 2:41pm UTC
Hammad50
(3)
Why GCC allow to create an array of length 0 as c++ does not allow to make a an array of length zero.
int ptr[0] ;
Has it any benefit ?
Nov 26, 2011 at 2:45pm UTC
Peter87
(11234)
You can read about it here
http://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
If you pass the -pedantic flag to gcc you will get a warning.
Last edited on
Nov 26, 2011 at 2:46pm UTC
Nov 26, 2011 at 3:14pm UTC
Hammad50
(3)
bro i m a beginner and dont know ISO C99 and C90 plz tell me in simple c++.
Topic archived. No new replies allowed.