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
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Explain how can type-insensitive macros be created?
What is the meaning of 2d in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Who is the founder of c language?
What is the difference between constant pointer and constant variable?
Where does the name "C" come from, anyway?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Write a program of advanced Fibonacci series.
What is const and volatile in c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Is c# a good language?
What is volatile keyword in c?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?