Comparing Pointers
Learn to compare pointers.
We'll cover the following...
Introduction
Pointers hold memory addresses, which are just numbers. Every comparison operator that works on numbers also works on pointers—<
,>
,<=
,>=
,==
, and !=
.
We won’t present an example for all of them as it will get pretty repetitive.
Fixing the code
We will try to use the comparison operator and improve the code we used in the Addition and Subtraction lesson.
Access this course and 1400+ top-rated courses and projects.