Skip to content

Comment on Learning C: Why (38 == '&' && 046 == 0x26 ) is true

Comments

This works the same way in almost any language. Numbers can be represented as decimal, octal, hexadecimal, binary, ... It's not anything special to C.

Thanks for pointing that out (: The blogpost explains how in learning C after years with PHP, MySQL, JavaScript and Objective-C one discovers little things about CS that weren't visible before while working on a higher abstraction level.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.