diff .between strcture and union

Answers were Sorted based on User's Feedback



diff .between strcture and union..

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

diff .between strcture and union..

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

Post New Answer

More C Interview Questions

what is the code to display color fonts in the output?

1 Answers  


What is the difference between array and linked list in c?

0 Answers  


What are the usage of pointer in c?

0 Answers  


What is an volatile variable?

15 Answers   HP,


Can you please explain the difference between exit() and _exit() function?

0 Answers  






what is the difference between getch() and getchar()?

10 Answers   Huawei, Infosys,


What are the primitive data types in c?

0 Answers  


What are the 32 keywords in c?

0 Answers  


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 Answers  


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; } }

7 Answers   CSC,


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

0 Answers  


Categories