As already stated by Philippe, non of following 4 functions are valid
C++ code. But, I am surprized to see that g++ accepts them all.
This will confuse users.
Float_t f1(Int_t n) {
Int_t size = n - 5;
Float_t array[size];
}
Float_t f2(Int_t n) {
const Int_t size = n - 5;
Float_t array[size];
}
Float_t f3(Int_t n) {
static const Int_t size = n - 5;
Float_t array[size];
}
Float_t f4(Int_t n) {
static Int_t size = n - 5;
Float_t array[size];
}