What are real programming conventions I have heard different things and seen different things so is there none at all? I know style varies between individuals and development teams but there are definite trends. For example:

pointers, which of these do people generally follow?

int* ptr;
int *ptr;

and when using operator overloading I was told that if the operator has no side effects it should be a friend function, else it should be a member function. Is this true?

What other conventiosn are there? And which do you follow?