So I have these statements in my code(there are many other lines but this is giving me trouble):
int *vector1;
if (vector1 == NULL)
{
}
When I try to run it it says "uninitialized local variable 'vector1' used" If I put "&vector1 == NULL" it doesn't complain but also doesn't work correctly.
I really don't understand why I am getting this error. I want it to do something if vector1 doesn't point to anything.