Week 3

Created by Miroslav Bi┼łas / mirek

## http://sli.do#ki-pvjc

## Problemset 1
## ArduinoDay 2018 18.apr.2018

Previously you Have Seen

struct person {
    char name[10];
    char surname[20];
    char sex; // M, F
    // int age;
};
## Date and Time Representation

Current Time

Date and Time Structured

## Enumeration Types
```C enum days { MONDAY, // 0 TUESDAY, // 1 WEDNESDAY, // 2 THURSDAY, // 3 FRIDAY, // 4 SATURDAY, // 5 SUNDAY // 6 }; ```
![Playing Cards](http://ardisoft.net/svg-z-cards/playingcards.png)

Unix Time

(seconds since 1 January 1970 00:00:00 UTC)

## `time()`

Judgement Day in

## Overflow
## Overflow > integer overflow occurs when an arithmetic operation attempts to create a numeric value that is outside of the range that can be represented with a given number of bits

Linux kernel

over 20,322,758 lines of code

2018, v4.15.7 (source)

Quake 2

138,240 lines of code

(source)

modular programming

software design technique that emphasizes separating the functionality of a program into independent modules

module

  1. interface
  2. implementation
## header files
## source files
## Makefile

Think first!

Do not write your code in one file, then try to split it into several files later!

int main(int argc, char** argv)
## Exit Status
$?
EXIT_SUCCESS // 0
EXIT_FAILURE // 1
## Questions?