Showing posts with label structures. Show all posts
Showing posts with label structures. Show all posts

January 30, 2013

Structures in C++ (OOPs)


implementation of structures in programming from day to day life in C++ (OOPs)

Structure is the user defined data type which can store heterogeneous data i.e. data of different types. It means in structure member with all possible data type can be used and there is no restriction that elements of the structure are stored at adjacent memory locations. Structure is declared with key word struct followed by its name and then by block. 

January 23, 2013

Union in C-language


practical example of union in day to day life in programming

Union is that data structure which is also user defined data type but to define a union keyword union  is used instead of struct.

Structure in C-language


implementation of structures in programming from day to day life

Structure is the user defined data type which can store heterogeneous data i.e. data of different types. It means in structure member with all possible data type can be used and there is no restriction that elements of the structure are stored at adjacent memory locations. Structure is declared with key word struct followed by its name and then by block.