While writing a function if suppose the programmer does not declare the variables used in the function then will it give a compile time error or a runtime error.
Printable View
While writing a function if suppose the programmer does not declare the variables used in the function then will it give a compile time error or a runtime error.
It would give compile time error also it is essential that the declaration is made before the braces of the function.