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 |
Write a programe print the sum of series 0,1,2,.....10
a simple program in c language
Write a program on swapping (100, 50)
the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0
What are the different types of control structures in programming?
what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }
5. distance conversion: Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer
what is the maximum no. of bytes calloc can allocate
What are loops in c?
Differentiate between new and malloc(), delete and free() ?
What is the use of getch ()?
What is #line in c?