Ouch! This was quite surprising. It reminds me of old FORTRAN days when you could change the value of a constant. (FORTRAN passes everything by address, this means that if you want to pass a constant to a function, you need to write the constant somewhere and pass the address. If the function changes the parameter, the constant will change.)
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
Ouch! This was quite surprising. It reminds me of old FORTRAN days when you could change the value of a constant. (FORTRAN passes everything by address, this means that if you want to pass a constant to a function, you need to write the constant somewhere and pass the address. If the function changes the parameter, the constant will change.)