C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 1)
1.
What is (void*)0?
Representation of NULL pointer
Representation of void pointer
Error
None of above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
124 comments Page 12 of 13.

Dinesh said:   1 decade ago
The Syntax for function definition is
return type function name(data type variable name)
but here the data type is given and the variable name is not given
and there is no return type.so,it is a null pointer.a void pointer is a pointer with return type void.

Amar said:   1 decade ago
it null pointer because pointer stores the addresses

Niklesh Raut said:   1 decade ago
It is Null Pointer because, Pointer stores the addresses of another variable but when variable type is not known then it will be (void) and to store address it is consist(*) also,so (void *) and initially it points to 0th address, Means Null.

Kalpana said:   1 decade ago
Since void pointer can return any type of pointer, in this problem it returns an integer pointer. Since 0 is null value of integer, the pointer return will be a null pointer.....

Yogeshwaran said:   1 decade ago
I don't know give any one for correct information.

Tasneem said:   1 decade ago
Can anybody explain it properly?

Praveen kumar said:   1 decade ago
I dont know anybody give full explanation

Srivibha said:   1 decade ago
What is the difference between void pointer and NULL pointer?

Anil said:   1 decade ago
This is nothing but here, we are pointing to a void memory.

Arpan said:   1 decade ago
I think it is void pointer!!!

I null pointer is something which refers to a memory block which already has been deallocated (by free() or something like that).


Post your comments here:

Your comments will be displayed after verification.