Pure Programmer
Blue Matrix


Cluster Map

Project: Hexadecimal Literals

Write a program that prints each of the [[hexadecimal]] [[literals]] in the table below in a print statement to see if the decimal equivalents are correct.

Example Integer Literals
DecimalHexadecimal
00x0
80x8
150xf
3260x146
439810xabcd
4390411010x1a2b3c4d
-326-0x146

Output
$ swiftc HexadecimalLiterals.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution