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
User Profile
Collapse
-
size of structure variable whose structure contains no data types
-
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...
No activity results to display
Show More