Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Defining Structures Variables in Different ways in C Programming Language | Tutorial
Play lesson

Learn C Programming Language | Tutorial for Beginners - Defining Structures Variables in Different ways in C Programming Language | Tutorial

5.0 (1)
31 learners

What you'll learn

This course includes

  • 25.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this tutorial you will learn about defining structures and declaring structure variables in different ways / methods. A Structure is a collection of related variables under one name. When we define a structure in our C Program, we get a new datatype which can contain variables of different datatypes. Structures are called as derived datatypes because they are created by using other types available in the language. To define a structure we use the keyword struct. The syntax is as follows. struct structure_tag{ structure member1; structure member2; .... }; After that we can create the variables from the structure that we have defined. To access the members of a structure using structure variable we use . ( dot operator ) also called as structure member operator. We can declare structure variables while defining the structure also. Then we can define variables separately and we can initialise them also. While initialising the variable we can provide the values for the structure members using . and : operator. Our Website http://www.LearningLad.com Social Media Facebook https://www.facebook.com/LearningLad twitter https://www.twitter.com/LearningLadEdu Instagram https://www.instagram.com/LearningLadOfficial

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere