21
Reply

What are the differences between local and global

Suresh Kumar

Suresh Kumar

Nov 09, 2017
967
1

    Every object have limitation of access, so any object which created inside of opening and closing brackets {} than its accessibility is limited, so it's known as local object, but object declared outside of methods (in class) then it's become common for all methods so it's known as a global object.

    Mehul Prajapati
    January 04, 2018
    2

    local gffg

    Shahid Bhat Bhat
    December 07, 2017
    1

    local gffg

    Shahid Bhat Bhat
    December 07, 2017
    1

    What are the differences between local and global?Ans:Variables are declared inside a function is called local variables and Variables are declared outside any function is called global variable

    Suresh Kumar
    November 17, 2017
    1

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    Global variables are program level,i.e their scope and visibility is througout the program while as locals are restricted within the function they are defined and they r destroyed when the execution fof that function ends

    Shahid Bhat Bhat
    December 07, 2017
    0

    local

    Shahid Bhat Bhat
    December 07, 2017
    0

    local gffg

    Shahid Bhat Bhat
    December 07, 2017
    0

    local

    Shahid Bhat Bhat
    December 07, 2017
    0

    .

    Shahid Bhat Bhat
    December 07, 2017
    0

    .

    Shahid Bhat Bhat
    December 07, 2017
    0

    .

    Shahid Bhat Bhat
    December 07, 2017
    0

    the local variable cant be used by the other function of the program as its usage is limited upto that function in which it is declared.On the other side the global variable can be used anywhere in the program as its usage is not limited to a particular function.

    Ashwani Bakshi
    December 02, 2017
    0

    What can i take-up there,sir !!! Local___ and Global___?

    Nithya Mathan
    November 15, 2017
    0

    What can i take-up there,sir !!! Local___ and Global___?

    Nithya Mathan
    November 15, 2017
    0

    ''

    Suresh Kumar
    November 09, 2017
    0