C Programming - Pointers - Discussion
Discussion Forum : Pointers - General Questions (Q.No. 1)
1.
What is (void*)0?
Discussion:
124 comments Page 9 of 13.
Bharathi said:
1 decade ago
Are you sure about this answer, sorry take it as negative I have bit doubt on this.
Prathi said:
1 decade ago
Here it s given that void(*)0. Is there any diff betwn void(*0) and void (*)0?.
Sumit jaiswal said:
1 decade ago
Void pointer does point any data type but null pointer does not point anywhere.
P.Ramya said:
1 decade ago
void means there is no meaning.so that we can assign (void*) is null pointer.
KHALIL Yhaia said:
7 years ago
It's a cast of 0 to (void *) '0' is a null value, so we got a NULL pointer.
Isha said:
1 decade ago
Can anyone explain me clearly what is void and null pointer with examples?
Nirmal said:
1 decade ago
The 'void' its self a null pointer return type hence the answer is null.
Sisira said:
1 decade ago
int *p=null;
int *p=;
null pointer or zero pointer.
int *p=88989;//error
int *p=;
null pointer or zero pointer.
int *p=88989;//error
Neha reddy said:
8 years ago
I think parenthesis id preferred first wrt*. So the answer will be in C.
Hafeezkhan said:
1 decade ago
1st void function_name (void).
1st void indicate function type is null.
1st void indicate function type is null.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers