User Profile

Collapse

Profile Sidebar

Collapse
Abdul Samad
Abdul Samad
Last Activity: Apr 13 '07, 06:35 AM
Joined: Apr 4 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • size of structure variable whose structure contains no data types

    banfa just said that it is because so the compiler may not assign the same memory to two variables

    but my question is WHY DOES COPILER ASSIGNMS MEMORY WHEN THERE IS NO NEED OF IT?

    as the structure has no data types or member functions so why the memory needed to be assignem to structured variable with no data types? for what purpose?

    Regards
    See more | Go to post

  • Abdul Samad
    started a topic Size of Struct variable of size zero
    in C

    Size of Struct variable of size zero

    Assalam mu Alikum,

    i understand the size of structure with no data types is zero. but why the size of structure variable is 1 Byte when the size of that structure is zeor?

    for example

    struct student{
    } st;

    here structure student has zero size but why the size of st is not zero? why it is one?

    plz reply soon as i am having assignemtn concerned to...
    See more | Go to post
No activity results to display
Show More
Working...