diff .between strcture and union
Answers were Sorted based on User's Feedback
Answer / sruthy
union allocates the memory equal to the maximum memory
required by the member of the union but structure allocates
the memory equal to the total memory required by the members
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / revathi pawar
structure is the set of different datatype whereas the
struct is the keyword
union is the one where will not print or give correct ouptut
whereas it will give the address of tat particular string or
no given
union s the keyword
| Is This Answer Correct ? | 1 Yes | 7 No |
Are there any problems with performing mathematical operations on different variable types?
What is the general form of function in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What does a run-time "null pointer assignment" error mean?
Can include files be nested? How many levels deep can include files be nested?
What is data types?
Tell me with an example the self-referential structure?
extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }
what is diffrence between string and character array?
main() { float a=3.2e40; printf("%d",a); }
How does placing some code lines between the comment symbol help in debugging the code?