Pyrolistical
Gawd
- Joined
- Mar 6, 2003
- Messages
- 737
Is this bad code?
That code compiles and works, but I thought you are suppose to do something like:
Why does it let you compile and use those arrays if your not suppose to do that?
Code:
void foo(int n) {
float bar[n];
...
}
That code compiles and works, but I thought you are suppose to do something like:
Code:
float * bar = new float[n];
Why does it let you compile and use those arrays if your not suppose to do that?