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 |
what is the code to display color fonts in the output?
What is the difference between array and linked list in c?
What are the usage of pointer in c?
What is an volatile variable?
Can you please explain the difference between exit() and _exit() function?
what is the difference between getch() and getchar()?
What are the primitive data types in c?
What are the 32 keywords in c?
Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered
1. What will be the output of the following programs. a) #include <stdio.h> Main() { Int x=4; While(x==1) { X=x-1; Printf(“%d”,x); --x; } }
How can a program be made to print the name of a source file where an error occurs?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?