Quirks and Bits Flashcards
What does weakly typed mean?
The type of a variable may be changed at runtime and supports implicit type conversion.
What does statically typed mean?
That the type of a variable is checked at compile time
What does the term Endianness describe and what are the two options for endianness?
Describes the position of the most significant bit in a system, can be either Big-Endian or Little-Endian.
What is the difference between a struct and a union?
A struct stores the data in seperate memory locations, whereas a union will store all of the data in the same memory location.
What is an enumeration?
A set of user-defined integral constants
enum days{
Monday,
Tuesday
Wednesday,
Thursday,
Friday,
Saturday,
Sunday,
}
What is a variadic function?
A function that can accept a variable number of parameters.
What is the equivalent of the “this” keyword in Objective-C?
self