1 Answers

Rahul Roi
Rahul Roi

The undeclared variables are those that do not exist in a program and are not declared. Whenever the program tries to read the value of an undeclared variable, then a runtime error is encountered.

The undefined-variables are those that are declared in the program but have not been given any value. Whenever the program tries to read the value of an undefined variable, an undefined value is returned.

Answer