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
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is ambagious result in C? explain with an example.
Explain the red-black trees?
What is %g in c?
What functions are used for dynamic memory allocation in c language?
What is the use of a semicolon (;) at the end of every program statement?
What are lookup tables in c?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
string reverse using recursion
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is pointer to pointer in c?
What is c method?
What are the 5 types of organizational structures?
main() { printf("hello"); fork(); }
What is ## preprocessor operator in c?