answersLogoWhite

Top Answer
User Avatar
Wiki User
Answered 2008-09-29 13:20:34

A void pointer is a pointer that has no type information attached to it.

A null pointer is a pointer that points to "nothing". A null pointer can be of any type (void included, of course).

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0

Your Answer

Related Questions


If by 'void pointer 0' you mean '(void *)0', then it is equal to NULL.


A Null pointer has the value 0. void pointer is a generic pointer introduced by ANSI. Before ANSI, char pointers are used as generic pointer. Generic pointer can hold the address of any data type. Pointers point to a memory address, and data can be stored at that address.


Answer#ifndef NULL# define NULL ((void*)0)#endifAnswerDon't use pointers that contain NULL-value. Eg:int *myptr= NULL;...*myptr = 32; /* wrong */


A NULL pointer is any pointer (including a void pointer) that has been initialised but is not currently pointing at anything valid. A void pointer is one that can be assigned any memory address, regardless of the type stored at that memory address. All pointers, including void pointers, must be initialised with a valid memory address before they can be used. An uninitialised pointer will store whatever value happens to reside at its own storage location when it is first instantiated and that value will be interpreted as being a memory address of the type indicated by the pointer. However any attempt to access that memory address would be catastrophic, since it could point literally anywhere, including memory that does not belong to your program. Thus programmers need some way to determine when pointers are pointing at something valid. This is achieved by assigning the NULL value (zero) to pointers that are invalid. In this way, any non-NULL pointer can be regarded as being a valid pointer. The onus is therefore upon the programmer to ensure all pointers are non-NULL prior to any indirect accesses, and to ensure all pointers are nullified when they are no longer required. Void pointers are used when the type being pointed at cannot be determined at compile time. It is up to the programmer to determine the actual type being pointed at runtime, and to cast the pointer accordingly. In most cases, this means utilising runtime type information (RTTI), which naturally incurs a performance overhead. Void pointers are typically used in C. However, in C++, pointers to abstract data types and base classes with virtual interfaces can be utilised instead, thus eliminating any need for RTTI.


They are pointers without type


There is no difference between public static void and static public void


You cannot "legalize" a null and void marriage. You need to get married "legally".You cannot "legalize" a null and void marriage. You need to get married "legally".You cannot "legalize" a null and void marriage. You need to get married "legally".You cannot "legalize" a null and void marriage. You need to get married "legally".


it is in the future. a different future and the null void is a training camp.


Answergenerally we use simple pointer, void pointer,null pointer, structure pointer. Answerzero or more (unlimited).


Pointer is a variable that is used to store the memory address of another variable. There are differenr types of pointers: NULL pointer THIS pointer VOID pointer NEAR pointer HUGE pointer FAR pointer WILD pointer


Certain clauses of a will made before marriage will be null and void. The wife will be included in the distribution.


A marriage is considered null/void when the previous marriage has not been terminated. An unconsumed marriage also can be considered null/void.


According to Black's Law Dictionary, the term "null and void" has become a common redundancy: they mean the same thing.


No, just because a police report has numerous errors does not mean the report is null and void.


This personal cheque has been stamped " Null and Void " by the bank because the account has been closed long ago. The lease was declared null and void because both co-owners of the leased property had not signed it.


avoid and void are almost the same avoid means "decleared void"


no, only that part is bad. if that were the case, the constitution would be null and void.


#define NULL ((void *)0) /* defined in <stddef.h> */ const char *mynullvar = NULL;


If the contract affects the property then it is null and void and unenforceable if the owner didn't sign it.If the contract affects the property then it is null and void and unenforceable if the owner didn't sign it.If the contract affects the property then it is null and void and unenforceable if the owner didn't sign it.If the contract affects the property then it is null and void and unenforceable if the owner didn't sign it.




It is not possible to declare a two-dimensional array using an array of pointers in any programming language, but many programming languages support declarations of N-dimensional arrays of pointers.The exact syntax varies with the programming language, and requires support for N-dimensional arrays and pointers. In C, the following declares an array of pointer variables, each implemented as pointer to the generic type "void":void* array_1D[10];The type of the expression array_1D is "void * const."The following example expands on the previous one by declaring a two-dimensional array of "void" pointers:void* array_2D[10][20];The type of the expression array_2D is "void ** const."The last example declares a 3-dimensional array of "void" pointers, which can be seen as a 2-dimensional array of arrays of pointers:void* array_3D[10][20][30];


citing the relevant authorities explain the differece between void and voidable marriages


It can make the contract null and void. A contract must be a meeting of the minds between all participants.


No, it will not be void because noterisation is not necessary.



Copyright ยฉ 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.