Difference between revisions of "ES101 - Lesson 9 : Structures"

From Embedded Systems Learning Academy
Jump to: navigation, search
(Created page with "== Objective == You will learn how to create structures. Structures can help you group information together. For example, if you wish to ask for student age, ID, and name, y...")
(No difference)

Revision as of 23:01, 29 July 2013

Objective

You will learn how to create structures.

Structures can help you group information together. For example, if you wish to ask for student age, ID, and name, you can group this data into a single structure that represents one student.

Video Demonstrates :

  • <Coming soon>

Type Define Structure

void main()
{
    
}

Declare and use structure

int main(void)
{
   
}

Passing structure to a function

Pass a copy

Pass by pointer

Assignment