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 |
Can the curly brackets { } be used to enclose a single line of code?
What is type qualifiers?
write a own function to compare two strings with out using stringcomparition function?
i want to know the procedure of qualcomm for getting a job through offcampus
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
5 Answers ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,
How many levels of pointers can you have?
What does int main () mean?
what is volatile in c language?
9 Answers Cap Gemini, HCL, Honeywell, TCS, Tech Mahindra,
What is console in c language?
Does c have circular shift operators?
Why can’t we compare structures?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none