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 are valid signatures for the Main function?

955


Explain what are multibyte characters?

876


What are the different types of errors?

843


Explain that why C is procedural?

900


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1669


What is data structure in c and its types?

820


Explain how can I remove the trailing spaces from a string?

819


Why c is a procedural language?

811


how do you programme Carrier Sense Multiple Access

1728


How is null defined in c?

868


How do we print only part of a string in c?

815


What is the use of ?

818


ATM machine and railway reservation class/object diagram

5007


Why doesnt that code work?

785


Why do we use pointer to pointer in c?

813