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
What is malloc() function?
can we change the default calling convention in c if yes than how.........?
what are bit fields in c?
Why do we need a structure?
Is c is a procedural language?
What are called c variables?
difference between native and cross compilers
How can a number be converted to a string?
What 'lex' does?
What is the -> in c?
How many types of operator or there in c?
What does calloc stand for?
Explain the difference between getch() and getche() in c?
What is boolean in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above