Posts

Showing posts with the label c structures tutorial

How to use Structures in C Programming Language

Image
  How to use Structures in C Programming Language Today in this blog post we are going to cover a simple data structure which is known as structure (struct) in C programming language. Basically it is a user defined data type with the help of which we can group related variables of different data types together under a single name known as a structure . With the help of structures we can merge or combine different data types like integer, characters, double, float, arrays, etc. into a single record. In programming languages like C, C++, C#, etc., sometimes we encounter a situation where we need to store different variables with different datatypes, but these variables are related to one object or instance. In such situations, we use data structures.  Today, we are going to discuss a simple technique that will help us store related variables in one place, namely, structures . We will look at how structures are used in the C programming language to help us achieve our target. ...