Where does the k prefix for constants come from?
it's a pretty common practice that constants are prefixed with k (e.g. k_pi ). But what does the k mean? Is it simply that c already meant char ? I haven't seen it that much, but maybe it comes from certain languages' (the germanic ones in particular) spelling of the word constant - konstant . It's a historical oddity, still common practice among teams who like to blindly apply coding standards that they don't understand. Long ago, most commercial programming languages were weakly typed; automatic type checking, which we take for granted now, was still mostly an academic topic. This meant that