c++objective-ccprefixhungarian-notation

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?


Solution

  • 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.