What is difference between structure and union with example?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above

4 Answers   Siemens,


main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }

2 Answers   CSC,


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

3 Answers  


Explain about the functions strcat() and strcmp()?

0 Answers  


Explain bit masking in c?

0 Answers  






An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

0 Answers  


What is the use of header?

0 Answers  


Differentiate fundamental data types and derived data types in C.

0 Answers   HCL,


c program to input values in a table(using 2D array) and print odd numbers from them

1 Answers  


What is the purpose of scanf() and printf() functions?

0 Answers  


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

0 Answers   Persistent,


What are the disadvantages of a shell structure?

0 Answers  


Categories