struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??
Answer Posted / avinash dubey
the correct answer in gcc compiler is 12..
concept of structure padding is involved here..
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What are type modifiers in c?
What is volatile variable in c with example?
What are global variables and explain how do you declare them?
What is the difference between volatile and const volatile?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What are the different types of C instructions?
When should you use a type cast?
What is function what are the types of function?
What are the benefits of organizational structure?
Tell me what are bitwise shift operators?
How can I insert or delete a line (or record) in the middle of a file?
to find the closest pair
Should I learn c before c++?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Write a program to identify if a given binary tree is balanced or not.