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
Is there any possibility to create customized header file with c programming language?
What is array within structure?
What is a char c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What is the main difference between calloc () and malloc ()?
What is pass by value in c?
Is c easier than java?
What are header files in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What are variables and it what way is it different from constants?
Why main function is special give two reasons?
Can the sizeof operator be used to tell the size of an array passed to a function?
I heard that you have to include stdio.h before calling printf. Why?
c program to compute AREA under integral
What is the role of && operator in a program code?