C Programming - Pointers - Discussion
Discussion Forum : Pointers - General Questions (Q.No. 1)
1.
What is (void*)0?
Discussion:
124 comments Page 6 of 13.
Dilip Sharma said:
1 decade ago
(void*)0 means pointer to void i.e memory location are pointed and 0 denote that our pointer point to memory location which is 0 hence it will show Null pointer.
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).
I null pointer is something which refers to a memory block which already has been deallocated (by free() or something like that).
Rani said:
1 decade ago
What is the purpose of giving void. What does it actuay mean by the warning given as "function should return value"while program is excecuted without void?
Kanjit said:
1 decade ago
The (void *) I understand as meaning a pointer to a void, so
>
> (void *) 0
>
> would be a void pointer to zero
so it will be null pointer
>
> (void *) 0
>
> would be a void pointer to zero
so it will be null pointer
Lakhan said:
9 years ago
Void pointer is pointer which has no specific data type so when we not mention any data type for this pointer. So it return us global value i.e. null.
Divya goyal said:
8 years ago
We can't write * with an integer as *p means value at the address holded by p. So by putting *0 it never refer to any address. So answer is C only.
Rahul chaudhary said:
1 decade ago
int i=1,j;
j=sizeof(++i + j++);
printf("%d%d",i,j);
What will be the output of this program a getting confuse please explain it.
j=sizeof(++i + j++);
printf("%d%d",i,j);
What will be the output of this program a getting confuse please explain it.
Abhay said:
1 decade ago
Pointers is I think the toughest topic I had ever came across about c. Can anybody please give some basics of pointer in simple language.
Nishu said:
1 decade ago
void(*) measns void pointer,it means value is nt given or void..
but void(*0)means it point to null value(i.e 0)..therefore null pointer
but void(*0)means it point to null value(i.e 0)..therefore null pointer
Priti Dhingra said:
1 decade ago
It is null pointer which is indicating a memory having nothing in it or void memory. But as it is pointer, it will store the address.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers