Results 1 to 2 of 2

Thread: structs

  1. #1
    Junior Member
    Join Date
    Mar 2009


    how c#'s structs are differents from c++'s structs

  2. #2
    Junior Member
    Join Date
    Jan 2008

    Thumbs up Re: structs


    In C++,struct is exactly same as a Class except its default access modifier is public for struct rather than private.
    In C#,struct is different from class,they are value type not a reference,When a struct is created, the variable to which the struct is assigned holds the struct's actual data. When the struct is assigned to a new variable, it is copied. The new variable and the original variable therefore contain two separate copies of the same data. Changes made to one copy do not affect the other copy.

    Hope it helps u........

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.