Results 1 to 5 of 5

Thread: c# question1

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Answers
    1

    c# question1

    what is the difference between data type and reference?


  2. #2
    Junior Member
    Join Date
    Dec 2008
    Answers
    1

    Re: c# question1

    A variable that is a value type, stores the data, while a variable of a reference type stores a reference to the data.


  3. #3
    Junior Member
    Join Date
    Dec 2008
    Answers
    1

    Re: c# question1

    data type store in stack.
    reference type store in heap.


  4. #4
    Junior Member
    Join Date
    Dec 2008
    Answers
    1

    Re: c# question1

    Data type is an attribute of an object that tells the programmer what data should be put into it and what operations that can be use upon it. Reference is also a data type but the object resides elsewhere. Reference constructs different type of data structures and link list.


  5. #5
    Junior Member
    Join Date
    Dec 2008
    Answers
    1

    Re: c# question1

    the basic diff between two would be
    value type -any changes made wuld not affect the value ouside the loop or fuction
    ref type-changes are made at address of the variable direclty
    in .net u can see whn u pass a variabele the diff wuld be
    (ByVal a as string)
    (ByRef a as integer)

    any correction do let me know.I would be pleased

    Magesh


  6.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact