Explain the difference between struct and union.
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• Struct: All members occupy separate memory.
• Union: All members share the same memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Struct: All members occupy separate memory.
• Union: All members share the same memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between array_name and &array_name?
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
What is null character in c?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
How many levels deep can include files be nested?
What is malloc and calloc?
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female
How we can write a value to an address using macro..?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is difference between far and near pointers?
write a program to delete an item from a particular location of an linear array?
Write a program to print all permutations of a given string.