Results 1 to 4 of 4

Thread: Doubt in union and structure

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Answers
    7

    Thumbs down Doubt in union and structure

    How the structure and union differs?tell me the depth answer about storing their memories and retriving in union and structures?


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    8

    Re: Doubt in union and structure

    in structures each member of the structure getting separate memory...
    but in union the memory of the member having highest memory will be assigned for the complete union...so data will be overwritten in the same location...hence results in the lose of data in union...


  3. #3
    Junior Member
    Join Date
    Aug 2007
    Answers
    9

    Re: Doubt in union and structure

    First, structure means it is used for storing different data types at different memories and union means it is used for storing different data types at that same memory which is the memory of the biggest data type in that union.


  4. #4
    Junior Member
    Join Date
    Jul 2006
    Answers
    7

    Re: Doubt in union and structure

    overwrtitten means(how union retrive the data back) its all in same location, how it fetch each char and int ????


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