AP Computer Science A

study guides for every class

that actually explain what's on your next test

Compare

from class:

AP Computer Science A

Definition

In programming, the term "compare" refers to the act of determining the relationship between two values. Specifically, when comparing strings alphabetically, it involves examining and comparing each character in both strings to determine their order.

"Compare" also found in:

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.