This style guide applies to C and C++.
If a pointer is being defined as null, use NULL. If NULL is not defined, define it as (void*)0.
Example:
```c
double *foo = NULL;
```
Use namespaces.
Do not place "using" outside of a function.
When declaring a pointer or multiple on the same line with other declared variable, put the asterisk next to the variable name without a space between it and the variable name.
```c
int *x, *y, z, q;
```
When a pointer is declared by itself, put the asterisk next to variable name.
```c
int *x;
```
Return to Categories