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 is boolean in c?
What is the difference between constant pointer and pointer to a constant. Give examples.
What is main () in c language?
What is keyword with example?
Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.
How to delete a node from linked list w/o using collectons?
Explain heap and queue.
what will be the output of" printf("%d%d",scanf("%d% d",&a&b));"
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is the relationship between pointers and data structure?
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST