Challenge Problems
Challenge solutions
Here are some example solution to programs in c code.
Intro to c:
Variables / assignments:
- variables(int)
- assignments
- arithmetic expressions int
- floating point numbers
- scientific notation for floating point literals
- constant variables
- using math functions
- integer division and modulo
- type conversions
- characters
- strings
- random numbers
Branches:
- if-else
- more if-else
- equality and relational operators
- detecting ranges with if else statements
- multiple if-else branches
- logical operators
- switch statements
- boolean data type
- string comparisons
- string access operations
- character operations
- conditional expressions
- floating-point comparison
Loops:
Arrays:
User defined functions:
Structs:
Input/output:
Pointers:
- why pointers pass by pointer example
- pass by pointer
- pointer basics
- the malloc and free functions
- pointers by structs
- a first link list
Recursion:
- recursive functions
- creating a recursive function
- recursive math functions