Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Greetings

Name: Anonymous 2011-09-23 14:48

Poll: Which one of the following variable naming conventions do you prefer?
A. int VariableName;
A. int variableName;
A. int variable_name;

Discussion: Coding style and conventions.

Name: Anonymous 2011-09-23 22:56

>>1
In C, I prefer variable_name. I only use capitalization in macros (ALL_CAPS) or typedefs (DataType) and functions using those typedefs (FooType_read() and BarType_read()).
>>6
Definitely "char *str;" because the * is a type modifier just like in "char str[]" or "char (*getstr)(void)", and not part of the base type.
>>22
The first one. But I don't mind other styles as long as they're consistent.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List