I just came across some C code where the programmer used $ at the start of one of their variable names. Like this:
int main() {
double $var;
return 0;
}
I've never encountered this until now. It functions no different than a typical variable so I assume there is a convention for using such a variable name like how constant variables are named with all capital letters. However, I can't find any answer. The programmer was using it as an abbreviation for "amount".