Ask Your Question

Revision history [back]

Yes, the pointer must be declared prior to the variable that it points to. This is because the pointer needs to know the type of data that it is pointing to in order to properly reference it.