144k views
0 votes
. It is perfectly valid to create pointers that point to __________

User Seanjacob
by
8.6k points

1 Answer

6 votes

Answer:

NULL.

Step-by-step explanation:

We can create a pointer that points to NULL.There is no problem in doing that you will not get any error.It means that the pointer right now points to nothing or 0.Look at this example for better explanation:-

#include <iostream>

using namespace std;

int main() {

int *p=NULL;

cout<<p;

return 0;

}

The output of this program is 0.

User Moses Machua
by
8.8k points

No related questions found