Mass-replace tabs with 4-width spacing
This seems to be the predominant choice, and matches the last commit I just made, so I went ahead and converted them all, and changed any, - for example, 2-space indents. Let me know if this is undesired. To understand why I chose to do this, please refer to the previous commit's message.pull/99/head
parent
4df5219c66
commit
ade78aaafb
@ -1,8 +1,15 @@
|
||||
int *int_Ptr; // Declare a pointer variable called iPtr pointing to an int (an int pointer)
|
||||
// Declare a pointer variable called iPtr pointing to an int (an int pointer)
|
||||
// It contains an address. That address holds an int value.
|
||||
double *double_Ptr; // Declare a pointer of type double.
|
||||
int *int_Ptr;
|
||||
|
||||
int a = 5; // Initializes a to the integer value 5
|
||||
int *int_Ptr = &a // Set int_Ptr which is an int pointer to the address of a
|
||||
std::cout << int_Ptr; // Returns the address of a
|
||||
std::cout << *int_Ptr; // Returns 5 because it dereference the pointer to retrieve the value of a.
|
||||
// Declare a pointer of type double.
|
||||
double *double_Ptr;
|
||||
|
||||
// Initializes a to the integer value 5
|
||||
int a = 5;
|
||||
// Set int_Ptr which is an int pointer to the address of `a`.
|
||||
int *int_Ptr = &a
|
||||
// Returns the address of `a`.
|
||||
std::cout << int_Ptr;
|
||||
// Returns 5 because it dereference the pointer to retrieve the value of `a`.
|
||||
std::cout << *int_Ptr;
|
||||
|
Loading…
Reference in New Issue