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 |
write the program for prime numbers?
73 Answers Accenture, Aptech, Infosys, TCS,
what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }
int i=0,j; j=++i + ++i ++i; printf(" %d",j);
What is the difference between CV and Resume ?
Can we access the array using a pointer in c language?
Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.
How are Structure passing and returning implemented by the complier?
Do you know the use of 'auto' keyword?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the difference between struct and union in C?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Illustrate it summing the series 2+4+6+......to n terms using (i) while loop (ii) do-while loop