struct abc
{
unsigned int a;
char b;
float r;
};
struct xyz
{
int u;
struct abc tt;
}ww;
ww = (struct xyz*)malloc(sizeof(struct xyz));
will the memory be allocated for the inner structure also?
Answer Posted / sadanand
Yes. when sizeof(xyz) is done. it will compute size of
struct abc + size of int
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain setjmp()?
what are enumerations in C
can we change the default calling convention in c if yes than how.........?
what is the role you expect in software industry?
What do you mean by recursion in c?
What are global variables and explain how do you declare them?
What is the meaning of c in c language?
Explain what are multibyte characters?
What are the keywords in c?
Where are c variables stored in memory?
What is the difference between NULL and NUL?
Combinations of fibanocci prime series
Which is best linux os?
Differentiate between ordinary variable and pointer in c.
What is string function in c?