main()
{
int
a=10,*j;
void *k;
j=k=&a;
j++;
k++;
printf("\n
%u %u ",j,k);
}
Answer:
Compiler
error: Cannot increment a void pointer
Explanation:
Void pointers are generic
pointers and they can be used only when the type is not known and as an
intermediate address storage type. No pointer arithmetic can be done on it and
you cannot apply indirection operator (*) on void pointers.
Blog Author: Vijay Kumar
No comments:
Post a Comment