struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??

Answer Posted / vishnu948923

void main()
{
int x,y;
y=&abc.a;
x=(&abc->p+1);
printf("%d",x-y);
}

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c fast?

597


What is the use of define in c?

588


What is equivalent to ++i+++j?

637


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

894


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1635






What is c language & why it is used?

572


What is structure in c language?

610


What is preprocessor with example?

572


how can use subset in c program and give more example

1489


Why main function is special give two reasons?

939


Explain how do you generate random numbers in c?

613


Why is #define used?

784


What is this pointer in c plus plus?

586


Does c have class?

605


What is the difference between int main and void main?

567