what is the difference between structure and union?
Answer Posted / dasari chaithanya
The difference between structure and union is ,structure
will occupie total number of bytes or memory sometimes
waste memory,but union is which is the higest memory than
the data will store the memory location.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why static is used in c?
What is the difference between the expression “++a” and “a++”?
What is the -> in c?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
C program to find all possible outcomes of a dice?
What is abstract data structure in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
Explain how can type-insensitive macros be created?
What does %2f mean in c?
Why main function is special give two reasons?
How a string is stored in c?
What are the types of data structures in c?
What is a structure and why it is used?
Differentiate between ordinary variable and pointer in c.
What is null pointer in c?