Klassifiziere die folgenden Literale als Strings oder Ints: "a", "", "0", 0, 0xasdf, "0xasdf"
Classify the following literals as strings or ints: "a", "", "0", 0, 0xasdf, "0xasdf"
In many programming languages, string literals are surrounded by double quotes. That means that "a", "", "0", and "0xasdf" are strings, while 0 and 0xasdf are int literals.
In vielen Programmiersprachen werden String-Literale von doppelten Anführungszeichen umgeben. Das bedeutet, dass "a", "", "0" und "0xasdf" Strings sind, während 0 und 0xasdf Int-Literale sind.
classification
de