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 |
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
Explain what is the difference between a string and an array?
can we define a function in structure?
What are file streams?
write a program to arrange the contents of a 1D array in ascending order
Prove or disprove P!=NP.
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Why array starts with index 0
Write a C program to count the number of email on text
What are the restrictions of a modulus operator?
what is the advantage of software development
What is the difference between calloc() and realloc()?