lesson 3-5 Flashcards
They are arithmetic types and are further classified into: (a) integer types and (b) floating-point types
Basic Types
They are again arithmetic types and they are used to define variables that can only assign certain discrete integer values throughout the program
Enumerated types
The type specifier void indicates that no value is available.
The type void
They include (a) Pointer types, (b) Array types, (c) Structure types, (d) Union types, and (e) Function types
Derived types
The expressions ______ yields the storage size of the object or type in bytes.
sizeof
it defines macros that allow you to use these values and other details about the binary representation of real numbers in your programs.
float.h
There are various functions in C which do not return any value or you can say they return void.
Function returns as void
There are various functions in C which do not accept any parameter
Function arguments as void
A pointer of type void * represents the address of an object, but not its type
Pointers to void
it is nothing but a name given to a storage area that our programs can manipulate.
variable
it can be composed of letters, digits, and the underscore character
name of a variable
BASIC VARIABLE TYPES
Typically a single octet (one byte). This is an integer type
char
BASIC VARIABLE TYPES
The most natural size of integer for the machine.
int
BASIC VARIABLE TYPES
A single-precision floating point value
float
BASIC VARIABLE TYPES
A double-precision floating point value.
double
BASIC VARIABLE TYPES
Represents the absence of type
void
this definition tells the compiler where and how much storage to create for the variable
variable definition
it provides assurance to the compiler that there exists a variable with the given type and name so that the compiler can proceed for further compilation
Variable declarations
Expressions that refer to a memory location are called “lvalue“ expressions
L-value
The term rvalue refers to a data value that is stored at some address in memory.
R-value
this function is a fundamental tool for outputting formatted text to the standard output stream.
printf
it reads formatted input from standard input stream
scanf
Some common format specifiers include:
•%d for integers
•%f for floating-point numbers
•%c for characters
•%s for strings