Topic:   What is scope of variable that declared outside the main? is that accessible in try & catch block?
Oct 28, 2020 05:30 1 Replies 159 Views SHIVA

 

What is scope of variable that declared outside the main? is that accessible in try & catch block?

Prev Next
Topic Replies (1)
  1. 1
    idnkx user

    ANANYA

    Yes, it should be accessable if it is declared before the main sequence as an individual variable.
    Scope of a variable is limited when declared inside a sequence when scope is mentioned.

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect