let's take a code

struct FAQ
{
int a;
char b;
float c;
double d;
int a[10];
}*temp;

now explain me how the memory will be allocated for the
structure FAQ and what address will be in the structure
pointer (temp)....................

Answer Posted / aman

your question is wrong it will give an error because u r declaring the variable 2 times and if u name it something else then the memory size will be 35 bytes on 32 bit compiler

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is identifiers in c with examples?

678


Explain logical errors? Compare with syntax errors.

632


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1359


What is pragma c?

616


What is define directive?

643






Is main an identifier in c?

606


How do you sort filenames in a directory?

716


What is echo in c programming?

560


What is the benefit of using const for declaring constants?

591


What is the difference between functions abs() and fabs()?

651


Is flag a keyword in c?

682


Why c is faster than c++?

634


Why structure is used in c?

597


Explain what is meant by high-order and low-order bytes?

636


How can you restore a redirected standard stream?

611