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 |
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
What is null in c?
the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38
What does the function toupper() do?
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
What is a protocol in c?
write a program for odd numbers?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
what is the difference between static variable and register variable?
what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.