MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-C-Programming-Course / main

Function main

Chapter 9/03_struct_arrays.c:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}; // semicolon is important
9
10int main()
11{
12 struct employee facebook[100]; // an array of structures
13 // we can access the data using:
14 facebook[0].code = 100;
15 facebook[1].code = 77;
16 struct employee harry = {100, 71.22, "harry"};
17 printf("%d %f %s", harry.code, harry.salary, harry.name);
18 return 0;
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected