---
title: "Null pointer and Void pointer"  
description: "Null pointer and Void pointer"  
author: "Prakash nidhi Verma"  
published: 2018-06-13  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/23425/null-pointer-and-void-pointer  
category: "education"  
tags: ["c#", "computer science"]  
reading_time: 1 minute  

---

# Null pointer and Void pointer

Null pointer is a special reserved value of a pointer. Formally, each specific pointer type like int * char * double * etc. has its own dedicated null-pointer value. A pointer is not pointing any address when it has a null pointer value.

null pointer is a value but void pointer is a type of var.

Example:

```
void *pointer = NULL;
```

```
int* p = 0;
```

Happy Coding :)

## Answers

### Answer by Prakash nidhi Verma

Null pointer is a special reserved value of a pointer. Formally, each specific pointer type like int * char * double * etc. has its own dedicated null-pointer value. A pointer is not pointing any address when it has a null pointer value.

null pointer is a value but void pointer is a type of var.

Example:

```
void *pointer = NULL;
```

```
int* p = 0;
```

Happy Coding :)


---

Original Source: https://www.mindstick.com/interview/23425/null-pointer-and-void-pointer

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
