Interviews - C# Corner

Suresh Kumar
What are the differences between local and global
By Suresh Kumar in SQL Server onNov 09 2017
  • Mehul Prajapati
    Jan, 2018 4

    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.

    • 3
  • Shahid Bhat Bhat
    Dec, 2017 7

    local gffg

    • 2
  • Shahid Bhat Bhat
    Dec, 2017 7

    local gffg

    • 2
  • Suresh Kumar
    Nov, 2017 17

    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

    • 2
  • Gajendra Jangid
    Jan, 2018 31

    basic diff is in local: Variables are declared inside a function. in global:Variables are declared outside a function.

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    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

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    local

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    local gffg

    • 1
  • Shahid Bhat Bhat
    Dec, 2017 7

    local

    • 0
  • Shahid Bhat Bhat
    Dec, 2017 7

    .

    • 0
  • Shahid Bhat Bhat
    Dec, 2017 7

    .

    • 0
  • Shahid Bhat Bhat
    Dec, 2017 7

    .

    • 0
  • Ashwani Bakshi
    Dec, 2017 2

    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.

    • 0
  • Nithya Mathan
    Nov, 2017 15

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

    • 0
  • Nithya Mathan
    Nov, 2017 15

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

    • 0
  • Suresh Kumar
    Nov, 2017 9

    ''

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS