What will be the result?

View this PeopleCode snippet:
If &MyVar = 0 then
&MyVar = 1;
End-if;
The &MyVar variable is not declared. What will be the result?

View this PeopleCode snippet:
If &MyVar = 0 then
&MyVar = 1;
End-if;
The &MyVar variable is not declared. What will be the result?

A.
The program will fail at run time.

B.
The program will not pass the syntax checker.

C.
The program will run but will produce undefined results.

D.
&MyVar willbe automatically declared with a type of Any.

E.
&MyVar will be automatically declared as Local Number.

F.
&MyVar will be automatically declared with a scope of Global.

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *