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 / 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 |
What are the two forms of #include directive?
how to multiply two number taking input as a string (considering sum and carry )
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?
Why c language?
What are the differences between new and malloc in C?
Write a C program that reads a series of strings and prints only those ending in "ed"
What is #include stdio h?
Explain what is the general form of a c program?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?