top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is an uninitialised pointer in C/C++?

+1 vote
308 views
What is an uninitialised pointer in C/C++?
posted Jan 21, 2015 by Alwaz

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Uninitialized pointers:

When we create a pointer the memory to the pointer is allocated but the contents or value that memory has to hold remains untouched. Unitialised pointers are those pointers which do not hold any initial value.

Example: int *p; is said to be an unitialise pointer, it is recomended to initialise the pointer before actually using it as it an error.

answer Jan 22, 2015 by Mohammed Hussain
...