Change some of the comments

This commit is contained in:
Scott C. MacCallum 2023-01-24 19:29:16 -05:00
parent 5695d8d97e
commit 6b888cc718
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
#include <stdlib.h>
// Use the indirection operator (*) to declare a variable, point to int and
// assign it the memory address of the counter variable element
// assign it the memory address of the counter variable object
void retrieve(int *pcounter) {
printf ("%d", *pcounter);
}
@ -12,12 +12,12 @@ void increment(void) {
// goes out of scope
// Set the counter variable as an unsigned (non-negative, greater than or
// equal to zero) integer
// Initialize the element of the counter variable to zero
// Initialize the object of the counter variable to zero
static unsigned int counter = 0;
// Use the increment operator (++) to increase the value of the element
// Use the increment operator (++) to increase the value of the object
counter++;
// Call the retrieve function and send the memory address of the counter
// variable element using the unary operator (&)
// variable object using the unary operator (&)
retrieve(&counter);
}