struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??
Answer Posted / kk
12 is answer
int a takes 4 bytes
char b takes 4 bytes due to data padding
int *p any pointer takes 4 bytes
so totally 12 bytes........
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
hi, which software companys will take,if d candidate's % is jst 55%?
What the different types of arrays in c?
What are the 4 data types?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
How to set file pointer to beginning c?
Is c weakly typed?
What is c variable?
What are 3 types of structures?
What should malloc(0) do?
Are enumerations really portable?
What is the heap in c?
What is the difference between malloc() and calloc() function in c language?
What is the advantage of a random access file?
Explain how do you use a pointer to a function?
Explain Basic concepts of C language?