C Video Tutorial 5

C Struct Video TutorialToday I’m going to cover how to create and use a struct in C. Structs are used when you need more then one piece of data to describe one thing. You can’t use an array because an array only holds data with the same data type

I’ll specifically cover how to : Create a Struct, Get data from a Struct, Initialize a Struct, Pass a Struct to a Function, Use Typedef, Change a Value in a Struct, Use a Struct in a Function, ->, *(structName) and how a Struct is stored in memory. The code follows the video below.

If you like videos like this, it helps to tell Google+ with a click here [googleplusone]

Code From the Video

CTutorial5_1.c

CTutorial5_2.c

2 thoughts on “C Video Tutorial 5”

  1. However the address of the structures you print is the one in the stack, instead of the real address of the variable. Hence they are diffferent.

Leave a Reply

Your email address will not be published. Required fields are marked *