// archives

Variables

This tag is associated with 2 posts

Passing and Returning Structures

Passing structures by value makes the most sense when the structure is relatively compact

So let’s look at a couple examples along those lines

The first example deals with travel time (not to be confused with time travel)

Some maps will tell you that

It is 2 hours, 56 minutes, from Zero One City to Binary Falls
And 1 hour, [...]

Variables and Their Data Types

The amount of memory space necessary to store a variable is

Also referred to as a data type

A data type provides two valuable pieces of information to the compiler

What amount of space the variable will use
What kind of information will be allowed in that space

After declaring a variable

The compiler reserves a space in memory for that [...]